diff options
| author | Dentomologist <dentomologist@gmail.com> | 2025-08-17 13:44:13 -0700 |
|---|---|---|
| committer | Dentomologist <dentomologist@gmail.com> | 2025-08-17 14:39:40 -0700 |
| commit | 1841c151c4e9d361ee29797952d2e98933423bc2 (patch) | |
| tree | c6b644562abc6808e911addea36b026f5127d15d /Source/Core/DolphinQt/FIFO/FIFOPlayerWindow.cpp | |
| parent | 99be30c0e15694031ec094549b3f84d3b5a9c3eb (diff) | |
FIFOPlayerWindow: Save and restore window geometry
Aside from allowing users to persistently set the window to their
desired size, this is also necessary to allow saving of the splitter
positions in FIFOAnalyzer to work correctly.
Diffstat (limited to 'Source/Core/DolphinQt/FIFO/FIFOPlayerWindow.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/FIFO/FIFOPlayerWindow.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/Core/DolphinQt/FIFO/FIFOPlayerWindow.cpp b/Source/Core/DolphinQt/FIFO/FIFOPlayerWindow.cpp index f271bca7d7..d1309d709f 100644 --- a/Source/Core/DolphinQt/FIFO/FIFOPlayerWindow.cpp +++ b/Source/Core/DolphinQt/FIFO/FIFOPlayerWindow.cpp @@ -83,6 +83,8 @@ FIFOPlayerWindow::FIFOPlayerWindow(FifoPlayer& fifo_player, FifoRecorder& fifo_r FIFOPlayerWindow::~FIFOPlayerWindow() { + Settings::GetQSettings().setValue(QStringLiteral("fifoplayerwindow/geometry"), saveGeometry()); + m_fifo_player.SetFileLoadedCallback({}); m_fifo_player.SetFrameWrittenCallback({}); } @@ -189,6 +191,9 @@ void FIFOPlayerWindow::CreateWidgets() void FIFOPlayerWindow::LoadSettings() { + restoreGeometry( + Settings::GetQSettings().value(QStringLiteral("fifoplayerwindow/geometry")).toByteArray()); + m_early_memory_updates->setChecked(Config::Get(Config::MAIN_FIFOPLAYER_EARLY_MEMORY_UPDATES)); m_loop->setChecked(Config::Get(Config::MAIN_FIFOPLAYER_LOOP_REPLAY)); } |
