Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
give a warning when notifications enabled but not available
The "disable notifications" option in advanced preferences allows the user to toggle desktop notifications on and off. However, if the game was not compiled with support for these, the option won't do anything. In this revision, if disable_notifications is set to false, but notifications are not available, a dialog is launched which explains that this executable was not compiled with support for notifications. The preference *is* toggled however -- this is because all versions of wesnoth use the same preference file (at least under linux), so we would rather to allow the user to change the file at will -- a different wesnoth binary which they have may indeed support notifications. So we only give a warning but allow them to toggle.
- Loading branch information
Showing
3 changed files
with
19 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters