Open YorozuyaDev opened 5 years ago
Issue with Ubuntu 19.04 and gnome 3.32: gnome-shell[2214]: Extension "keys-indicator@caasiu.github.com" had error: TypeError: Object is of type St.BoxLayout - cannot convert to ClutterLayoutManager
Same here, after updating to Fedora 30.
Shell version: 3.32.1
Extension version: 5
Haven't worked with Gnome extensions before, but If I had to make a guess, I'd say the error is happening here: https://github.com/caasiu/gnome-shell-extension-KeysIndicator/blob/b12fd1024c992da07faf45274117c7227c4633fc/keys-indicator%40caasiu.github.com/extension.js#L63-L73
Issue with Ubuntu 19.04 and gnome 3.32: gnome-shell[2214]: Extension "keys-indicator@caasiu.github.com" had error: TypeError: Object is of type St.BoxLayout - cannot convert to ClutterLayoutManager
Same problem with Fedora 30 and gnome-shell-3.32
Also getting an error under Gnome 3.34...
Same here, after updating to Fedora 30.
Shell version: 3.32.1 Extension version: 5
Haven't worked with Gnome extensions before, but If I had to make a guess, I'd say the error is happening here: https://github.com/caasiu/gnome-shell-extension-KeysIndicator/blob/b12fd1024c992da07faf45274117c7227c4633fc/keys-indicator%40caasiu.github.com/extension.js#L63-L73
我找到了一个方法 把上述代码换成下面的
//put all the label together
let layout = new St.BoxLayout({style_class: 'box-style'})
//Todo: add 5 label using one line?
layout.add(this.keyCtrl);
layout.add(this.keyShift);
layout.add(this.keyAlt);
layout.add(this.capsLock);
layout.add(this.numLock);
this.layoutManager = layout.layout_manager;
//add the box to the panel
this.actor.add_actor(layout);
错误信息就像 @gsiciliano 说的那样 是类型转换错误 我找到了这个方法将St.BoxLayout转换为Clutter.LayoutManager Class St.BoxLayout
我的gnome-shell版本是3.34
Error when you try to install it