Move main window setting to its own section

This commit is contained in:
Chocobo1
2021-12-09 15:53:42 +08:00
parent b8a7ecfe69
commit 2d48581570

View File

@@ -1296,12 +1296,12 @@ void Preferences::setMainVSplitterState(const QByteArray &state)
QString Preferences::getMainLastDir() const
{
return value("MainWindowLastDir", QDir::homePath());
return value("MainWindow/LastDir", QDir::homePath());
}
void Preferences::setMainLastDir(const QString &path)
{
setValue("MainWindowLastDir", path);
setValue("MainWindow/LastDir", path);
}
QByteArray Preferences::getPeerListState() const