mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-07-30 19:20:42 +00:00
Merge pull request #590 from tatarhy/master
feat: play done sound when selected on settings
This commit is contained in:
commit
ee57ed2a28
1 changed files with 2 additions and 0 deletions
|
|
@ -1,6 +1,7 @@
|
|||
// tslint:disable:max-line-length
|
||||
import { ConfigFormSection, SoundConfig } from '../global-config.model';
|
||||
import { T } from '../../../t.const';
|
||||
import { playDoneSound } from '../../tasks/util/play-done-sound';
|
||||
|
||||
export const SOUND_FORM_CFG: ConfigFormSection<SoundConfig> = {
|
||||
title: T.GCF.SOUND.TITLE,
|
||||
|
|
@ -41,6 +42,7 @@ export const SOUND_FORM_CFG: ConfigFormSection<SoundConfig> = {
|
|||
hideExpression: ((model: any) => {
|
||||
return !model.isPlayDoneSound;
|
||||
}),
|
||||
change: ({ model }) => playDoneSound(model),
|
||||
},
|
||||
},
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue