Skip to content

Move non-persistent settings to file in cache directory#167

Open
sotpapathe wants to merge 1 commit intonthdimtech:masterfrom
sotpapathe:separate-cache-file
Open

Move non-persistent settings to file in cache directory#167
sotpapathe wants to merge 1 commit intonthdimtech:masterfrom
sotpapathe:separate-cache-file

Conversation

@sotpapathe
Copy link
Copy Markdown

lastRemoveableBackup, lastUpdatePrompt, and windowGeometry are more like
cached variables than proper settings since they may change at each
start of the program.

Moved them to a separate struct, localCache and split the saveSettings()
and loadSettings() functions into two, one for localSettings and one for
localCache.

My motivation for this is due to the fact that I manage my dotfiles using git. Every time I start signet, one or more of the 3 options I move has changed so I see the file as changed but it makes no sense to commit it.

lastRemoveableBackup, lastUpdatePrompt, and windowGeometry are more like
cached variables than proper settings since they may change at each
start of the program.

Moved them to a separate struct, localCache and split the saveSettings()
and loadSettings() functions into two, one for localSettings and one for
localCache.
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