mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-03 06:58:42 +00:00
Catch snd_path is None error in Notification Plugin
This commit is contained in:
parent
5b1e43735b
commit
2186fdb870
1 changed files with 9 additions and 7 deletions
|
@ -441,6 +441,8 @@ class GtkUI(GtkPluginBase, GtkUiNotifications):
|
||||||
snd_path = self.config['custom_sounds'][event_name]
|
snd_path = self.config['custom_sounds'][event_name]
|
||||||
else:
|
else:
|
||||||
snd_path = self.config['sound_path']
|
snd_path = self.config['sound_path']
|
||||||
|
|
||||||
|
if snd_path:
|
||||||
self.sounds_model.set(
|
self.sounds_model.set(
|
||||||
self.sounds_model.append(),
|
self.sounds_model.append(),
|
||||||
SND_EVENT, event_name,
|
SND_EVENT, event_name,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue