fix: Save the try icon setting
This commit is contained in:
parent
6c95daf0a1
commit
9501b59f81
2 changed files with 4 additions and 1 deletions
|
|
@ -87,6 +87,7 @@ const char *const AppConfig::m_SettingsName[] = {
|
||||||
"showCloseReminder",
|
"showCloseReminder",
|
||||||
"enableUpdateCheck",
|
"enableUpdateCheck",
|
||||||
"logExpanded",
|
"logExpanded",
|
||||||
|
"colorfulIcon",
|
||||||
};
|
};
|
||||||
|
|
||||||
AppConfig::AppConfig(deskflow::gui::IConfigScopes &scopes, std::shared_ptr<Deps> deps)
|
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_ShowCloseReminder = getFromCurrentScope(kShowCloseReminder, m_ShowCloseReminder).toBool();
|
||||||
m_EnableUpdateCheck = getFromCurrentScope<bool>(kEnableUpdateCheck, [](const QVariant &v) { return v.toBool(); });
|
m_EnableUpdateCheck = getFromCurrentScope<bool>(kEnableUpdateCheck, [](const QVariant &v) { return v.toBool(); });
|
||||||
m_logExpanded = getFromCurrentScope(kLogExpanded, m_logExpanded).toBool();
|
m_logExpanded = getFromCurrentScope(kLogExpanded, m_logExpanded).toBool();
|
||||||
|
m_colorfulTrayIcon = getFromCurrentScope(kColorfulIcon, m_colorfulTrayIcon).toBool();
|
||||||
}
|
}
|
||||||
|
|
||||||
void AppConfig::recallScreenName()
|
void AppConfig::recallScreenName()
|
||||||
|
|
@ -211,6 +213,7 @@ void AppConfig::commit()
|
||||||
setInCurrentScope(kShowCloseReminder, m_ShowCloseReminder);
|
setInCurrentScope(kShowCloseReminder, m_ShowCloseReminder);
|
||||||
setInCurrentScope(kEnableUpdateCheck, m_EnableUpdateCheck);
|
setInCurrentScope(kEnableUpdateCheck, m_EnableUpdateCheck);
|
||||||
setInCurrentScope(kLogExpanded, m_logExpanded);
|
setInCurrentScope(kLogExpanded, m_logExpanded);
|
||||||
|
setInCurrentScope(kColorfulIcon, m_colorfulTrayIcon);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_TlsChanged) {
|
if (m_TlsChanged) {
|
||||||
|
|
|
||||||
|
|
@ -110,7 +110,7 @@ private:
|
||||||
kShowCloseReminder = 42,
|
kShowCloseReminder = 42,
|
||||||
kEnableUpdateCheck = 43,
|
kEnableUpdateCheck = 43,
|
||||||
kLogExpanded = 44,
|
kLogExpanded = 44,
|
||||||
kColorIcon = 45
|
kColorfulIcon = 45
|
||||||
};
|
};
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue