mirror of
https://github.com/morgan9e/gnome-shell-extension-freon
synced 2026-04-14 00:14:14 +09:00
Remove HACK with setting menuItem
This commit is contained in:
@@ -378,10 +378,7 @@ const FreonMenuButton = new Lang.Class({
|
||||
this.menu.addMenuItem(new PopupMenu.PopupSeparatorMenuItem());
|
||||
|
||||
let item = new PopupMenu.PopupBaseMenuItem();
|
||||
// HACK: span and expand parameters don't work as expected on Label, so add an invisible
|
||||
// Label to switch columns and not totally break the layout.
|
||||
item.actor.add(new St.Label({ text: '' }));
|
||||
item.actor.add(new St.Label({ text: _("Sensors Settings") }));
|
||||
item.actor.add(new St.Label({ text: _("Sensors Settings") }), { expand: true, x_fill: false });
|
||||
|
||||
item.connect('activate', function () {
|
||||
Util.spawn(["gnome-shell-extension-prefs", Me.metadata.uuid]);
|
||||
|
||||
Reference in New Issue
Block a user