mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-31 01:26:22 +00:00
Show message on /prefs desktop when notifications not supported by the build
This commit is contained in:
@@ -944,6 +944,18 @@ _cons_show_ui_prefs(void)
|
|||||||
static void
|
static void
|
||||||
_cons_notify_setting(void)
|
_cons_notify_setting(void)
|
||||||
{
|
{
|
||||||
|
gboolean notify_enabled = FALSE;
|
||||||
|
#ifdef HAVE_OSXNOTIFY
|
||||||
|
notify_enabled = TRUE;
|
||||||
|
#endif
|
||||||
|
#ifdef HAVE_LIBNOTIFY
|
||||||
|
notify_enabled = TRUE;
|
||||||
|
#endif
|
||||||
|
#ifdef PLATFORM_CYGWIN
|
||||||
|
notify_enabled = TRUE;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
if (notify_enabled) {
|
||||||
if (prefs_get_boolean(PREF_NOTIFY_MESSAGE))
|
if (prefs_get_boolean(PREF_NOTIFY_MESSAGE))
|
||||||
cons_show("Messages (/notify message) : ON");
|
cons_show("Messages (/notify message) : ON");
|
||||||
else
|
else
|
||||||
@@ -1007,6 +1019,9 @@ _cons_notify_setting(void)
|
|||||||
} else {
|
} else {
|
||||||
cons_show("Reminder period (/notify remind) : %d seconds", remind_period);
|
cons_show("Reminder period (/notify remind) : %d seconds", remind_period);
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
cons_show("Notification support was not included in this build.");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|||||||
Reference in New Issue
Block a user