Qt: Show dialog on startup for settings version mismatch

For the QMessageBox to appear, error reporting is performed again after
main window creation.
This commit is contained in:
Albert Liu
2020-10-07 20:43:50 -07:00
parent 9d2687e7d4
commit 94d7d4cead
5 changed files with 28 additions and 2 deletions

View File

@ -174,6 +174,10 @@ public:
/// Reloads post processing shaders with the current configuration.
void ReloadPostProcessingShaders();
/// Returns an empty string if no settings version mismatch was detected, non-empty otherwise. Should not be called
/// before CheckSettings(SettingsInterface& si).
const std::string& GetSettingsVersionMismatchString() const;
protected:
enum : u32
{
@ -371,6 +375,8 @@ private:
// running in batch mode? i.e. exit after stopping emulation
bool m_batch_mode = false;
std::string m_settings_version_mismatch_str;
#ifdef WITH_DISCORD_PRESENCE
// discord rich presence
bool m_discord_presence_enabled = false;