From c75dee74fae65eb1ba63303e3fbd8b2c80edde1b Mon Sep 17 00:00:00 2001 From: nguyenvukhang Date: Wed, 1 Feb 2023 20:05:02 +0800 Subject: [PATCH] fix: set proper path for settings --- mainwindow.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mainwindow.cc b/mainwindow.cc index 0a0c608..daac282 100644 --- a/mainwindow.cc +++ b/mainwindow.cc @@ -2,7 +2,11 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow), - nw("https://canvas.nus.edu.sg"), settings(QSettings::UserScope) + nw("https://canvas.nus.edu.sg"), + settings( + QStandardPaths::writableLocation(QStandardPaths::ConfigLocation) + + "/canvas-sync-settings.ini", + QSettings::IniFormat) { ui->setupUi(this);