Skip to content

Commit 7196f0c

Browse files
committed
gmoccapy_3_4_6 - added first steps to solve delay on sound use
to test sound I added a play sound on changing the sound settings on settings page Signed-off-by: Norbert Schechner <nieson@web.de>
1 parent 5a45585 commit 7196f0c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/emc/usr_intf/gmoccapy/gmoccapy.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def excepthook(exc_type, exc_obj, exc_tb):
7676

7777
# constants
7878
# # gmoccapy #"
79-
_RELEASE = " 3.4.4"
79+
_RELEASE = " 3.4.6"
8080
_INCH = 0 # imperial units are active
8181
_MM = 1 # metric units are active
8282

@@ -743,8 +743,6 @@ def _make_ref_axis_button(self):
743743
for child in children:
744744
self.ref_button_dic[child.get_property("name")] = child
745745

746-
self.widgets.hbtb_ref.show_all()
747-
748746
def _get_space_label(self, name):
749747
lbl = Gtk.Label.new("")
750748
lbl.set_property("name", name)
@@ -5264,6 +5262,8 @@ def on_change_sound(self, widget, sound=None):
52645262
else:
52655263
self.alert_sound = file
52665264
self.prefs.putpref("audio_alert", file)
5265+
self.audio.set_sound(file)
5266+
self.audio.run()
52675267

52685268
def on_tbtn_switch_mode_toggled(self, widget, data=None):
52695269
if widget.get_active():

0 commit comments

Comments
 (0)