mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-02-06 00:15:04 +01:00
gex: fix and update
This commit is contained in:
@@ -7,12 +7,9 @@ const ExtensionUtils = imports.misc.extensionUtils;
|
||||
const { SystemIndicator } = imports.ui.quickSettings;
|
||||
const QuickSettingsMenu = imports.ui.main.panel.statusArea.quickSettings;
|
||||
|
||||
import { Platform } from '../dbus/platform';
|
||||
import { QuickMiniLed } from '../quick_toggles/mini_led';
|
||||
|
||||
export const IndicateMiniLed = GObject.registerClass(
|
||||
class IndicateMiniLed extends SystemIndicator {
|
||||
constructor(dbus_platform: Platform) {
|
||||
constructor() {
|
||||
super();
|
||||
|
||||
// Create the icon for the indicator
|
||||
@@ -25,14 +22,6 @@ export const IndicateMiniLed = GObject.registerClass(
|
||||
this._indicator, 'visible',
|
||||
Gio.SettingsBindFlags.DEFAULT);
|
||||
|
||||
// // Create the toggle and associate it with the indicator, being sure to
|
||||
// // destroy it along with the indicator
|
||||
// this.quickSettingsItems.push(new QuickMiniLed(dbus_platform));
|
||||
|
||||
// this.connect('destroy', () => {
|
||||
// this.quickSettingsItems.forEach((item: { destroy: () => any; }) => item.destroy());
|
||||
// });
|
||||
|
||||
// Add the indicator to the panel and the toggle to the menu
|
||||
QuickSettingsMenu._indicators.add_child(this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user