Skip to content

Commit

Permalink
apply disable_notifications preference in all platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeck88 committed Apr 14, 2014
1 parent 46850f2 commit 63f4945
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/game_display.cpp
Expand Up @@ -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();

Expand Down

0 comments on commit 63f4945

Please sign in to comment.