1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-11-03 19:37:16 -05:00

Show message on /prefs desktop when notifications not supported by the build

This commit is contained in:
James Booth 2014-10-26 22:20:37 +00:00
parent 6c980969e0
commit c8b524d9c8

View File

@ -944,6 +944,18 @@ _cons_show_ui_prefs(void)
static 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))
cons_show("Messages (/notify message) : ON");
else
@ -1007,6 +1019,9 @@ _cons_notify_setting(void)
} else {
cons_show("Reminder period (/notify remind) : %d seconds", remind_period);
}
} else {
cons_show("Notification support was not included in this build.");
}
}
static void