use hint name as documented
This commit is contained in:
parent
25646a45e6
commit
40b70ae6f7
|
@ -137,7 +137,10 @@ void SnoreToast::slotPrintExitStatus(int, QProcess::ExitStatus)
|
||||||
QString SnoreToast::appId(const Application &application)
|
QString SnoreToast::appId(const Application &application)
|
||||||
{
|
{
|
||||||
|
|
||||||
QString appID = application.constHints().value("windows_app_id").toString();
|
QString appID = application.constHints().value("windows-app-id").toString();
|
||||||
|
if (appID.isEmpty()) {
|
||||||
|
appID = application.constHints().value("windows_app_id").toString();
|
||||||
|
}
|
||||||
if (appID.isEmpty()) {
|
if (appID.isEmpty()) {
|
||||||
appID = QString("%1.%2.SnoreToast").arg(qApp->organizationName(), qApp->applicationName()).remove(" ");
|
appID = QString("%1.%2.SnoreToast").arg(qApp->organizationName(), qApp->applicationName()).remove(" ");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue