bug fixes
This commit is contained in:
@@ -84,13 +84,15 @@ void initShell(DrawData& drawData)
|
||||
|
||||
void showToastNotification(TimerToastHandler* handler, const wchar_t* title, const wchar_t* text)
|
||||
{
|
||||
WinToastTemplate templ = WinToastTemplate(WinToastTemplate::ImageAndText02);
|
||||
WinToastTemplate templ = WinToastTemplate(WinToastTemplate::ImageAndText01);
|
||||
templ.setScenario(WinToastTemplate::Scenario::Alarm);
|
||||
templ.setImagePath(L"E:\\Code\\AsuroImgui\\x64\\Debug\\kaiju.ico");
|
||||
templ.setTextField(title, WinToastTemplate::FirstLine);
|
||||
templ.setTextField(text, WinToastTemplate::SecondLine);
|
||||
templ.setAttributionText(text);
|
||||
templ.addAction(L"Stop");
|
||||
templ.addAction(L"Dismiss");
|
||||
if (!WinToast::instance()->showToast(templ, handler)) {
|
||||
OutputDebugString(L"Error: Could not launch your toast notification!\n");
|
||||
OutputDebugString(L"Error: Could not launch toast!\n");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user