From 1841c151c4e9d361ee29797952d2e98933423bc2 Mon Sep 17 00:00:00 2001 From: Dentomologist Date: Sun, 17 Aug 2025 13:44:13 -0700 Subject: [PATCH] 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. --- Source/Core/DolphinQt/FIFO/FIFOPlayerWindow.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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)); }