mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-04-30 14:45:43 -04:00
CommonHostInterface: Prevent crash with fullscreen UI enabled
This commit is contained in:
parent
dda2cccb1c
commit
1f206421e8
@ -2702,6 +2702,7 @@ void CommonHostInterface::LoadSettings(SettingsInterface& si)
|
|||||||
}
|
}
|
||||||
else if (m_fullscreen_ui_enabled)
|
else if (m_fullscreen_ui_enabled)
|
||||||
{
|
{
|
||||||
|
if (FullscreenUI::IsInitialized())
|
||||||
FullscreenUI::UpdateSettings();
|
FullscreenUI::UpdateSettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -231,6 +231,11 @@ bool Initialize(CommonHostInterface* host_interface)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool IsInitialized()
|
||||||
|
{
|
||||||
|
return (s_host_interface != nullptr);
|
||||||
|
}
|
||||||
|
|
||||||
bool HasActiveWindow()
|
bool HasActiveWindow()
|
||||||
{
|
{
|
||||||
return s_current_main_window != MainWindowType::None || s_save_state_selector_open ||
|
return s_current_main_window != MainWindowType::None || s_save_state_selector_open ||
|
||||||
|
@ -40,6 +40,7 @@ enum class SettingsPage
|
|||||||
};
|
};
|
||||||
|
|
||||||
bool Initialize(CommonHostInterface* host_interface);
|
bool Initialize(CommonHostInterface* host_interface);
|
||||||
|
bool IsInitialized();
|
||||||
bool HasActiveWindow();
|
bool HasActiveWindow();
|
||||||
void UpdateSettings();
|
void UpdateSettings();
|
||||||
void SystemCreated();
|
void SystemCreated();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user