diff options
| author | Felix (xq) Queißner <git@mq32.de> | 2020-06-09 10:33:30 +0200 |
|---|---|---|
| committer | Felix (xq) Queißner <git@mq32.de> | 2020-06-09 10:33:30 +0200 |
| commit | 976522e19566eaa30bd5cc4fe55730dd8a777bf8 (patch) | |
| tree | eaac7a967a4715473921c6d8c80997c8945220d7 /src/mainwindow.cpp | |
| parent | 7f858ec4237670fb93e44c197834c9adf52b7e9d (diff) | |
| download | kristall-976522e19566eaa30bd5cc4fe55730dd8a777bf8.tar.gz | |
Adds internal preset handling. Still missing import/export.
Diffstat (limited to 'src/mainwindow.cpp')
| -rw-r--r-- | src/mainwindow.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index c1361dd..f735b2a 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -31,9 +31,12 @@ MainWindow::MainWindow(QApplication * app, QWidget *parent) : this->statusBar()->addPermanentWidget(this->load_time); this->favourites.load(global_settings); - this->current_style.load(global_settings); this->protocols.load(global_settings); + global_settings.beginGroup("Theme"); + this->current_style.load(global_settings); + global_settings.endGroup(); + ui->favourites_view->setModel(&favourites); this->ui->outline_window->setVisible(false); @@ -135,9 +138,12 @@ void MainWindow::setUrlPreview(const QUrl &url) void MainWindow::saveSettings() { this->favourites.save(global_settings); - this->current_style.save(global_settings); this->protocols.save(global_settings); + global_settings.beginGroup("Theme"); + this->current_style.save(global_settings); + global_settings.endGroup(); + { global_settings.beginGroup("Window State"); |
