Catch snd_path is None error in Notification Plugin
This commit is contained in:
parent
d3e8afdda1
commit
16d27b9657
|
@ -443,6 +443,8 @@ class GtkUI(GtkPluginBase, GtkUiNotifications):
|
|||
snd_path = self.config['custom_sounds'][event_name]
|
||||
else:
|
||||
snd_path = self.config['sound_path']
|
||||
|
||||
if snd_path:
|
||||
self.sounds_model.set(
|
||||
self.sounds_model.append(),
|
||||
SND_EVENT, event_name,
|
||||
|
|
Loading…
Reference in New Issue