File tree 2 files changed +5
-4
lines changed
ptt@thbemme/files/ptt@thbemme
2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ MyApplet.prototype = {
53
53
this . preserve_state = this . is_muted ;
54
54
this . set_icon_mode ( ) ;
55
55
this . set_applet_icon_name ( this . icon_mic_on ) ;
56
- this . set_applet_tooltip ( _ ( 'Click or press ' + this . keybinding_ptt_toggle + ' to activate PTT' ) ) ;
56
+ this . set_applet_tooltip ( _ ( 'Click or press ' + this . keybinding_ptt_toggle . replace ( / [ ^ \w ] / g , "" ) + ' to activate PTT' ) ) ;
57
57
this . keybindset_ptt_toggle ( ) ;
58
58
global . log ( "PTT Applet: Initializing ptt loop" ) ;
59
59
this . refresh_loop ( ) ;
@@ -229,7 +229,7 @@ MyApplet.prototype = {
229
229
if ( this . active ) {
230
230
this . active = false ;
231
231
this . keybindremove_ptt_activate ( ) ;
232
- this . set_applet_tooltip ( _ ( 'Click or press ' + this . keybinding_ptt_toggle + ' to activate PTT' ) ) ;
232
+ this . set_applet_tooltip ( _ ( 'Click or press ' + this . keybinding_ptt_toggle . replace ( / [ ^ \w ] / g , "" ) + ' to activate PTT' ) ) ;
233
233
global . log ( "PTT Applet: Disable ptt and remove keybind" ) ;
234
234
if ( this . preserve_state ) {
235
235
this . set_nocap ( ) ;
@@ -241,7 +241,7 @@ MyApplet.prototype = {
241
241
this . preserve_state = this . is_muted ;
242
242
this . active = true ;
243
243
this . keybindset_ptt_activate ( ) ;
244
- this . set_applet_tooltip ( _ ( 'PTT is active, ' + this . keybinding_ptt_key + ' to talk' ) ) ;
244
+ this . set_applet_tooltip ( _ ( 'PTT is active, ' + this . keybinding_ptt_key . replace ( / [ ^ \w ] / g , "" ) + ' to talk' ) ) ;
245
245
this . set_nocap ( ) ;
246
246
global . log ( "PTT Applet: Enable ptt and add keybind" ) ;
247
247
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"uuid" : " ptt@thbemme" ,
3
3
"name" : " PTT Applet" ,
4
+ "version" : " 0.2" ,
4
5
"description" : " Push-to-talk applet and microphone indicator"
5
- }
6
+ }
You can’t perform that action at this time.
0 commit comments