build fix for wxUSE_WINRT==0
This commit is contained in:
parent
e777bd9ebd
commit
0a5f6e07f5
@ -341,15 +341,25 @@ bool wxNotificationMessage::MSWUseToasts(
|
||||
const wxString& shortcutPath,
|
||||
const wxString& appId)
|
||||
{
|
||||
#if wxUSE_WINRT
|
||||
return wxToastNotificationHelper::UseToasts(shortcutPath, appId);
|
||||
#else
|
||||
wxUnusedVar(shortcutPath);
|
||||
wxUnusedVar(appId);
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
|
||||
void wxNotificationMessage::Init()
|
||||
{
|
||||
#if wxUSE_WINRT
|
||||
if ( wxToastNotificationHelper::IsEnabled() )
|
||||
m_impl = wxToastNotificationHelper::CreateInstance(this);
|
||||
else
|
||||
#endif
|
||||
{
|
||||
m_impl = new wxBalloonNotifMsgImpl(this);
|
||||
}
|
||||
}
|
||||
|
||||
#endif // wxUSE_NOTIFICATION_MESSAGE && wxUSE_TASKBARICON
|
||||
|
Loading…
Reference in New Issue
Block a user