Skip to content

Commit

Permalink
fix: set proper path for settings
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyenvukhang committed Feb 1, 2023
1 parent 2ed18ce commit c75dee7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mainwindow.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit c75dee7

Please sign in to comment.