Welcome Dialog: Reject users that reject our TOS

* Improved welcome dialog

* "show at startup" checkbox always changeable
This commit is contained in:
Antonino Di Guardo 2024-12-07 19:56:05 +01:00 committed by GitHub
parent 24655fd975
commit 68b7e5971d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 81 additions and 38 deletions

View file

@ -1848,12 +1848,29 @@ void main_window::SaveWindowState() const
// Save gui settings
m_gui_settings->SetValue(gui::mw_geometry, saveGeometry(), false);
m_gui_settings->SetValue(gui::mw_windowState, saveState(), false);
m_gui_settings->SetValue(gui::mw_mwState, m_mw->saveState(), true);
// Save column settings
m_game_list_frame->SaveSettings();
// Save splitter state
m_debugger_frame->SaveSettings();
// NOTE:
//
// This method is also invoked in case the gui_application::Init() method failed ("false" was returned)
// to initialize some modules leaving other modules uninitialized (NULL pointed).
// So, the following checks on NULL pointer are provided before accessing the related module's object
if (m_mw)
{
m_gui_settings->SetValue(gui::mw_mwState, m_mw->saveState(), true);
}
if (m_game_list_frame)
{
// Save column settings
m_game_list_frame->SaveSettings();
}
if (m_debugger_frame)
{
// Save splitter state
m_debugger_frame->SaveSettings();
}
}
void main_window::RepaintThumbnailIcons()