File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -771,16 +771,18 @@ def post_initialise(self):
771771 (self .next_button , "play-next" ),
772772 (self .repeat_toggle , "play-repeat" ),
773773 (self .shuffle_toggle , "play-shuffle" )):
774+ a .set_action_name ("app." + b )
774775 if b == "play-repeat" or b == "play-shuffle" :
775776 # for some distros you need to set the target_value
776777 # for others this would actually disable the action
777778 # so work around this by testing if the action is disabled
778779 # then reset the action
779- #a.set_action_target_value(GLib.Variant("b", True))
780- #print(a.get_sensitive())
781- #if not a.get_sensitive():
782- a .set_detailed_action_name ("app." + b )
783- a .set_action_name ("app." + b )
780+ # https://gitlab.gnome.org/GNOME/gtk/issues/939
781+ # the above issue is why you see actionhelper mismatch
782+ # errors
783+ a .set_action_target_value (GLib .Variant ("b" , True ))
784+ if not a .get_sensitive ():
785+ a .set_detailed_action_name ("app." + b )
784786
785787
786788 # The Play-Repeat button is subject to the plugins Repeat All/one song
You can’t perform that action at this time.
0 commit comments