Rename shouldShowAudioNotificationSetting
Use `isAudioNotificationSupported` to make it less presentation layer specific.
This commit is contained in:
parent
105eb95391
commit
85b121aca4
4 changed files with 9 additions and 10 deletions
|
@ -1,4 +1,4 @@
|
|||
const OS = require('../os');
|
||||
|
||||
exports.shouldShowAudioNotificationSetting = () =>
|
||||
exports.isAudioNotificationSupported = () =>
|
||||
!OS.isLinux();
|
||||
|
|
|
@ -70,7 +70,7 @@
|
|||
name: 'theme-setting',
|
||||
event: 'change-theme'
|
||||
});
|
||||
if (Settings.shouldShowAudioNotificationSetting()) {
|
||||
if (Settings.isAudioNotificationSupported()) {
|
||||
new CheckboxView({
|
||||
el: this.$('.audio-notification-setting'),
|
||||
defaultValue: false,
|
||||
|
@ -104,8 +104,7 @@
|
|||
noNameOrMessage: i18n('noNameOrMessage'),
|
||||
nameOnly: i18n('nameOnly'),
|
||||
audioNotificationDescription: i18n('audioNotificationDescription'),
|
||||
shouldShowAudioNotificationSetting:
|
||||
Settings.shouldShowAudioNotificationSetting(),
|
||||
isAudioNotificationSupported: Settings.isAudioNotificationSupported(),
|
||||
themeAndroidDark: i18n('themeAndroidDark'),
|
||||
hideMenuBar: i18n('hideMenuBar'),
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue