Only set default hint when the application is created.
This commit is contained in:
parent
d00c6ea013
commit
2c178b2fe4
|
@ -28,7 +28,6 @@ Application::Application():
|
||||||
|
|
||||||
Application::Application(const QString &name, const Icon &icon) :
|
Application::Application(const QString &name, const Icon &icon) :
|
||||||
d(new ApplicationData(name, name, icon))
|
d(new ApplicationData(name, name, icon))
|
||||||
|
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -91,7 +90,6 @@ bool Application::isValid() const
|
||||||
|
|
||||||
Hint &Application::hints()
|
Hint &Application::hints()
|
||||||
{
|
{
|
||||||
d->m_hint.setValue("silent", SnoreCore::instance().settingsValue(QLatin1String("Silent"), LOCAL_SETTING));
|
|
||||||
return d->m_hint;
|
return d->m_hint;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -34,6 +34,8 @@ ApplicationData::ApplicationData(const QString &key, const QString &name, const
|
||||||
|
|
||||||
m_hint.setValue("pushover-token", QLatin1String("aFB1TPCyZkkr7mubCGEKy5vJEWak9t"));
|
m_hint.setValue("pushover-token", QLatin1String("aFB1TPCyZkkr7mubCGEKy5vJEWak9t"));
|
||||||
m_hint.setValue("use-markup", false);
|
m_hint.setValue("use-markup", false);
|
||||||
|
m_hint.setValue("silent", SnoreCore::instance().settingsValue(QLatin1String("Silent"), LOCAL_SETTING));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ApplicationData::~ApplicationData()
|
ApplicationData::~ApplicationData()
|
||||||
|
|
Loading…
Reference in New Issue