break;
case IDA_BUTTON_LAUNCH:
{
- AppManager::GetInstance()->LaunchApplication(__mainAppId);
+ result r = AppManager::GetInstance()->LaunchApplication(__mainAppId);
+ AppLogExceptionIf(IsFailed(r), "[%s] Failed to launch application. - %ls", GetErrorMessage(r), __mainAppId.GetPointer());
break;
}
default:
NotificationRequest request;
result r = request.SetIconFilePath(pMainAppInfo->GetAppMenuIconPath());
AppLogDebugIf(IsFailed(r), "[%s] Failed to set app icon.", GetErrorMessage(r));
+
+ if (!pMainAppInfo->IsMenuIconVisible())
+ {
+ AppLogDebug("This app hasn't a menu icon.");
+ mainAppId = L"";
+ }
+
delete pMainAppInfo;
String installTime;
mainAppId = L"D7eOJquGtL.Installer";
}
- r = notificationManager.NotifyByAppId(mainAppId, request);
- AppLogExceptionIf(IsFailed(r), "[%s] Failed to notify message.", GetErrorMessage(r));
+ if (mainAppId.IsEmpty())
+ {
+ r = notificationManager.Notify(request);
+ AppLogExceptionIf(IsFailed(r), "[%s] Failed to notify message.", GetErrorMessage(r));
+ }
+ else
+ {
+ r = notificationManager.NotifyByAppId(mainAppId, request);
+ AppLogExceptionIf(IsFailed(r), "[%s] Failed to notify message.", GetErrorMessage(r));
+ }
String* pFilePath = null;
do