Skip to content

Commit 37d4027

Browse files
Fix issue where changing the file path will cause window to restore to it's saved position.
1 parent fd4e931 commit 37d4027

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

launcherwindow.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,13 @@ void LauncherWindow::readSettings()
251251
savedPasses = settings.value("pass").toStringList();
252252
settings.endGroup();
253253

254+
readSettingsPath();
255+
}
256+
257+
void LauncherWindow::readSettingsPath()
258+
{
259+
QSettings settings("Shticker-Book-Rewritten", "Shticker-Book-Rewritten");
260+
254261
settings.beginGroup("FilesPath");
255262
filePath = settings.value("path").toString();
256263
settings.endGroup();
@@ -334,5 +341,5 @@ void LauncherWindow::setFilePath()
334341

335342
chooser->deleteLater();
336343

337-
readSettings();
344+
readSettingsPath();
338345
}

launcherwindow.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ private slots:
7373
QString cachePath;
7474

7575
void readSettings();
76+
void readSettingsPath();
7677
void writeSettings();
7778
void setFilePath();
7879

0 commit comments

Comments
 (0)