mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 11:49:06 +00:00
Merge pull request #6672 from spycrab/qt_dynamic
Qt: Make toolbar more dynamic
This commit is contained in:
commit
dabfecfd74
13 changed files with 86 additions and 1 deletions
|
@ -109,6 +109,10 @@ MainWindow::MainWindow(std::unique_ptr<BootParameters> boot_parameters) : QMainW
|
|||
|
||||
if (boot_parameters)
|
||||
StartGame(std::move(boot_parameters));
|
||||
|
||||
QSettings& settings = Settings::GetQSettings();
|
||||
|
||||
restoreState(settings.value(QStringLiteral("mainwindow/state")).toByteArray());
|
||||
}
|
||||
|
||||
MainWindow::~MainWindow()
|
||||
|
@ -117,6 +121,10 @@ MainWindow::~MainWindow()
|
|||
ShutdownControllers();
|
||||
|
||||
Config::Save();
|
||||
|
||||
QSettings& settings = Settings::GetQSettings();
|
||||
|
||||
settings.setValue(QStringLiteral("mainwindow/state"), saveState());
|
||||
}
|
||||
|
||||
void MainWindow::InitControllers()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue