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

Save config on exit, not interaction #490

Merged
merged 1 commit into from
Jul 8, 2024

Conversation

jacksongoode
Copy link
Collaborator

@jacksongoode jacksongoode commented Jul 3, 2024

This changes the behavior of how we save the config to save only when Psst is completely closed. This reduces the unnecessary need to save the config anytime the state changes.

Ideally, we should be able to capture all instances of an application closing, except in the most extreme case, so that we can restore the state from its last configuration.

There appears to be a workaround for macOS to handle the Cmd+Q hotkey given that it doesn't seem at least on macOS that you can capture the QUIT_APP command. This will need to be tested on Windows and Linux.

@jacksongoode jacksongoode merged commit 3fe08cc into master Jul 8, 2024
6 checks passed
@jacksongoode jacksongoode deleted the jackson/save-config-on-exit branch July 8, 2024 08:44
@jacksongoode
Copy link
Collaborator Author

I tested this on Linux and Windows and it seems to work fine!

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

Successfully merging this pull request may close these issues.

1 participant