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