2016-01-27 09:11:59 +00:00
|
|
|
#include "stdafx.h"
|
|
|
|
|
|
|
|
bool CNotificationSettings::m_bInFullScreen = false;
|
|
|
|
|
|
|
|
CNotificationSettings::CNotificationSettings()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
CNotificationSettings::~CNotificationSettings()
|
|
|
|
{
|
|
|
|
if (g_Settings)
|
|
|
|
{
|
2021-03-18 00:32:37 +00:00
|
|
|
g_Settings->UnregisterChangeCB((SettingID)UserInterface_InFullScreen, this, (CSettings::SettingChangedFunc)StaticRefreshSettings);
|
2016-01-27 09:11:59 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void CNotificationSettings::RegisterNotifications()
|
|
|
|
{
|
2021-03-18 00:32:37 +00:00
|
|
|
g_Settings->RegisterChangeCB((SettingID)UserInterface_InFullScreen, this, (CSettings::SettingChangedFunc)StaticRefreshSettings);
|
2016-01-27 09:11:59 +00:00
|
|
|
RefreshSettings();
|
|
|
|
}
|
|
|
|
|
|
|
|
void CNotificationSettings::RefreshSettings()
|
|
|
|
{
|
2016-04-13 07:34:19 +00:00
|
|
|
m_bInFullScreen = UISettingsLoadBool(UserInterface_InFullScreen);
|
2021-03-10 09:37:35 +00:00
|
|
|
}
|