apply disable_notifications preference in all platforms
This commit is contained in:
parent
3d6662dd1f
commit
5aa19c2b53
1 changed files with 3 additions and 1 deletions
|
@ -895,10 +895,12 @@ static uint32_t send_dbus_notification(DBusConnection *connection, uint32_t repl
|
|||
|
||||
#if defined(HAVE_LIBDBUS) || defined(HAVE_GROWL) || defined(_WIN32)
|
||||
void game_display::send_notification(const std::string& owner, const std::string& message)
|
||||
{
|
||||
if (preferences::get("disable_notifications", false)) { return; }
|
||||
#else
|
||||
void game_display::send_notification(const std::string& /*owner*/, const std::string& /*message*/)
|
||||
#endif
|
||||
{
|
||||
#endif
|
||||
#if defined(HAVE_LIBDBUS) || defined(HAVE_GROWL) || defined(_WIN32)
|
||||
Uint8 app_state = SDL_GetAppState();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue