forked from feedc0de/evcharger-app
Fix warnings and add showsolalaweb checkbox
This commit is contained in:
1 parent
6c235a0fed
commit
94c84af4a1
7 files changed
+106
-42
No files matched your search
@@ -155,3 +155,20 @@ bool AppSettings::loadSolalawebCert(const QString &url)
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool AppSettings::showSolalaweb() const
|
||||
{
|
||||
if (m_showSolalaweb)
|
||||
return *m_showSolalaweb;
|
||||
|
||||
auto showSolalaweb = value("showSolalaweb").toBool();
|
||||
m_showSolalaweb = showSolalaweb;
|
||||
return showSolalaweb;
|
||||
}
|
||||
|
||||
void AppSettings::setShowSolalaweb(bool showSolalaweb)
|
||||
{
|
||||
setValue("showSolalaweb", showSolalaweb);
|
||||
m_showSolalaweb = showSolalaweb;
|
||||
emit showSolalawebChanged(showSolalaweb);
|
||||
}
|
||||
Reference in new issue
Block a user