Search in sources :

Example 1 with NotificationsPrefs

use of com.faforever.client.preferences.NotificationsPrefs in project downlords-faf-client by FAForever.

the class SettingsController method temporarilyDisableUnsupportedSettings.

/**
 * Disables preferences that should not be enabled since they are not supported yet.
 */
private void temporarilyDisableUnsupportedSettings(Preferences preferences) {
    NotificationsPrefs notification = preferences.getNotification();
    notification.setFriendOnlineSoundEnabled(false);
    notification.setFriendOfflineSoundEnabled(false);
    notification.setFriendOfflineSoundEnabled(false);
    notification.setFriendPlaysGameSoundEnabled(false);
    notification.setFriendPlaysGameToastEnabled(false);
}
Also used : NotificationsPrefs(com.faforever.client.preferences.NotificationsPrefs)

Aggregations

NotificationsPrefs (com.faforever.client.preferences.NotificationsPrefs)1