File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -76,12 +76,12 @@ class CinnamonKeyboardApplet extends Applet.Applet {
7676 this . _propSection = new PopupMenu . PopupMenuSection ( ) ;
7777 this . menu . addMenuItem ( this . _propSection ) ;
7878 this . menu . addMenuItem ( new PopupMenu . PopupSeparatorMenuItem ( ) ) ;
79- this . menu . addAction ( _ ( "Show Keyboard Layout" ) , ( ) => this . _showActiveLayout ( ) ) ;
79+ this . showLayoutAction = this . menu . addAction ( _ ( "Show Keyboard Layout" ) , ( ) => this . _showActiveLayout ( ) ) ;
8080 this . menu . addAction ( _ ( "Show Character Table" ) , ( ) => {
8181 Main . overview . hide ( ) ;
8282 Util . spawn ( [ 'gucharmap' ] ) ;
8383 } ) ;
84- this . menu . addSettingsAction ( _ ( "Keyboard layouts" ) , 'keyboard' , "layouts" ) ;
84+ this . _applet_context_menu . addSettingsAction ( _ ( "Manage keyboard layouts" ) , 'keyboard' , "layouts" ) ;
8585
8686 this . _inputSourcesManager = KeyboardManager . getInputSourceManager ( ) ;
8787 this . _signalManager . connect ( this . _inputSourcesManager , "sources-changed" , this . _onSourcesChanged . bind ( this ) ) ;
@@ -218,6 +218,8 @@ class CinnamonKeyboardApplet extends Applet.Applet {
218218 this . actor . hide ( ) ;
219219 }
220220
221+ this . showLayoutAction . setSensitive ( selected . type === 'xkb' ) ;
222+
221223 this . _updatePropertySection ( selected . properties ) ;
222224 }
223225
You can’t perform that action at this time.
0 commit comments