Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes made to the styles dropdown are not saved? #697

Closed
s427 opened this issue May 9, 2024 · 3 comments
Closed

Changes made to the styles dropdown are not saved? #697

s427 opened this issue May 9, 2024 · 3 comments
Milestone

Comments

@s427
Copy link

s427 commented May 9, 2024

I'm referring to the dropdown menu visible on the "Style Toolbar".

I don't use the default styles and wanted to define my own styles. However upon restarting Keynote, all my changes are lost. Only the default styles are visible (Blue Typewriter, Emergency, Green Highlight, etc).

I tried to restart KN with admin privileges; delete most of the styles in this dropdown; then restart KN. Same result: all the default styles are back.

Am I doing something wrong?

Note: immediately after deleting the styles, and before restarting KN, if I go to Tools > Customize keyboard > Apply style, I can see all the default styles listed there too (even though I just deleted them), and none of the styles I created.

@dpradov
Copy link
Owner

dpradov commented May 9, 2024

It's true, the removal of default styles is being ignored. I'll correct it.

In the meantime, what you can do is directly edit the "keynote.kns" file of the corresponding profile,
eliminating the entries of those styles that you do not use. (You have to edit the file with the application closed, or it will overwrite your changes on exit)

@dpradov
Copy link
Owner

dpradov commented May 9, 2024

Upon reviewing it again I can verify that the changes are indeed saved, regardless of whether they are default styles, but currently only when closing the application (and the session), and only if it has not been started with the -nso command line ( do not save options).
Closing the session is when changes to styles (keynote.kns) and favorites (keynote.fvr) are saved.

However, it is true that since it is possible to define keyboard shortcuts for the styles, and this is done from a DLL that identifies the styles to be used by consulting the "keynote.kns" file, it is advisable not to wait to save the changes on this .kns file at session close.

dpradov added a commit that referenced this issue May 9, 2024
…ification, and not just on exit the application

Among other things, this allows you to assign a keyboard shortcut to a newly created style without having to reopen the application.

Ref: #697
@s427
Copy link
Author

s427 commented May 9, 2024

Strange... Now it works fine. :/ I tried several times earlier today.

Anyway, glad that you made so that it's not necessary to restart the application for assigning keyboard shortcuts to new styles.

@dpradov dpradov added this to the 1.9.4 milestone May 10, 2024
@dpradov dpradov closed this as completed May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants