fix: Save the try icon setting
This commit is contained in:
committed by
Chris Rizzitello
parent
6c95daf0a1
commit
9501b59f81
@ -87,6 +87,7 @@ const char *const AppConfig::m_SettingsName[] = {
|
||||
"showCloseReminder",
|
||||
"enableUpdateCheck",
|
||||
"logExpanded",
|
||||
"colorfulIcon",
|
||||
};
|
||||
|
||||
AppConfig::AppConfig(deskflow::gui::IConfigScopes &scopes, std::shared_ptr<Deps> deps)
|
||||
@ -153,6 +154,7 @@ void AppConfig::recallFromCurrentScope()
|
||||
m_ShowCloseReminder = getFromCurrentScope(kShowCloseReminder, m_ShowCloseReminder).toBool();
|
||||
m_EnableUpdateCheck = getFromCurrentScope<bool>(kEnableUpdateCheck, [](const QVariant &v) { return v.toBool(); });
|
||||
m_logExpanded = getFromCurrentScope(kLogExpanded, m_logExpanded).toBool();
|
||||
m_colorfulTrayIcon = getFromCurrentScope(kColorfulIcon, m_colorfulTrayIcon).toBool();
|
||||
}
|
||||
|
||||
void AppConfig::recallScreenName()
|
||||
@ -211,6 +213,7 @@ void AppConfig::commit()
|
||||
setInCurrentScope(kShowCloseReminder, m_ShowCloseReminder);
|
||||
setInCurrentScope(kEnableUpdateCheck, m_EnableUpdateCheck);
|
||||
setInCurrentScope(kLogExpanded, m_logExpanded);
|
||||
setInCurrentScope(kColorfulIcon, m_colorfulTrayIcon);
|
||||
}
|
||||
|
||||
if (m_TlsChanged) {
|
||||
|
||||
@ -110,7 +110,7 @@ private:
|
||||
kShowCloseReminder = 42,
|
||||
kEnableUpdateCheck = 43,
|
||||
kLogExpanded = 44,
|
||||
kColorIcon = 45
|
||||
kColorfulIcon = 45
|
||||
};
|
||||
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user