Commit a0873ab6 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

[RFC] Save window state outside of XDG_CONFIG_HOME

The window state is volatile data and thus should not be saved in .config

This moves the default save location from .config/appnamerc to .local/share/appname/appnamestaterc, which is more appropriate.

This is particularly relevant when .config is version-controlled where you don't want volatile changes, i.e. when moving a window

CCBUG: 416731
parent bbcfcc53
......@@ -779,7 +779,7 @@ bool KMainWindow::settingsDirty() const
void KMainWindow::setAutoSaveSettings(const QString &groupName, bool saveWindowSize)
setAutoSaveSettings(KConfigGroup(KSharedConfig::openConfig(), groupName), saveWindowSize);
setAutoSaveSettings(KConfigGroup(KSharedConfig::openStateConfig(), groupName), saveWindowSize);
void KMainWindow::setAutoSaveSettings(const KConfigGroup &group,
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment