Merge pull request #13883 from Dentomologist/fifoplayerwindow_geometry_fixes

FIFOPlayerWindow geometry fixes
This commit is contained in:
Tilka authored and GitHub committed 2025-08-18 20:23:24 +01:00
commit 8701944dd1
3 files changed
+12 -4

No files matched your search

@@ -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({});
}
@@ -168,6 +170,7 @@ void FIFOPlayerWindow::CreateWidgets()
layout->addWidget(info_group);
layout->addWidget(playback_group);
layout->addWidget(recording_group);
layout->addStretch();
layout->addWidget(m_button_box);
m_main_widget = new QWidget(this);
@@ -188,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));
}