Skip to content

Commit

Permalink
Changing appId and lnk name, adding moolticute's icon
Browse files Browse the repository at this point in the history
  • Loading branch information
deXol committed Oct 23, 2018
1 parent 254e73a commit 2df0753
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Binary file modified data/zzz.ico
Binary file not shown.
2 changes: 1 addition & 1 deletion src/linkhelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ HRESULT LinkHelper::tryCreateShortcut(const std::wstring &appID)
{
wchar_t buffer[MAX_PATH];
if (GetModuleFileNameEx(GetCurrentProcess(), nullptr, buffer, MAX_PATH) > 0) {
return tryCreateShortcut(L"SnoreToast.lnk", buffer, appID);
return tryCreateShortcut(L"Mooltipass.lnk", buffer, appID);
}
return E_FAIL;
}
Expand Down
4 changes: 2 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ SnoreToasts::USER_ACTION parse(std::vector<wchar_t*> args)
} else if (arg == L"-tb") {
isTextBoxEnabled = true;
} else if (arg == L"-install") {
appID = L"Snore.DesktopToasts";
appID = L"Mooltipass";
return SUCCEEDED(LinkHelper::tryCreateShortcut(appID)) ? SnoreToasts::Success : SnoreToasts::Failed;
} else if (arg == L"-close") {
id = nextArg(it, L"Missing agument to -close"
Expand Down Expand Up @@ -183,7 +183,7 @@ SnoreToasts::USER_ACTION parse(std::vector<wchar_t*> args)
hr = (title.length() > 0 && body.length() > 0) ? S_OK : E_FAIL;
if (SUCCEEDED(hr)) {
if (appID.length() == 0) {
appID = L"Snore.DesktopToasts";
appID = L"Mooltipass";
hr = LinkHelper::tryCreateShortcut(appID);
}
if (SUCCEEDED(hr)) {
Expand Down

0 comments on commit 2df0753

Please sign in to comment.