Do not try to play sounds under windows
This commit is contained in:
parent
c64180aa38
commit
4fd5ed56f3
2 changed files with 8 additions and 0 deletions
|
@ -682,6 +682,12 @@ class preference_Window:
|
|||
col.pack_start(renderer)
|
||||
col.set_attributes(renderer, text=2)
|
||||
self.fill_sound_treeview()
|
||||
|
||||
if not os.name == 'posix':
|
||||
self.xml.get_widget('entry_soundplayer').set_sensitive(False)
|
||||
self.sound_tree.set_sensitive(False)
|
||||
self.xml.get_widget('entry_sounds').set_sensitive(False)
|
||||
self.xml.get_widget('button_sounds').set_sensitive(False)
|
||||
|
||||
#Autopopup
|
||||
st = self.plugin.config['autopopup']
|
||||
|
|
|
@ -2625,6 +2625,8 @@ class plugin:
|
|||
|
||||
|
||||
def play_sound(self, event):
|
||||
if not os.name == 'posix':
|
||||
return
|
||||
if not self.config[event]:
|
||||
return
|
||||
file = self.config[event + '_file']
|
||||
|
|
Loading…
Add table
Reference in a new issue