mirror of
https://github.com/morgan9e/gnome-shell-extension-freon
synced 2026-04-15 00:44:22 +09:00
remove redeclaration of _onDestroy()
This commit is contained in:
@@ -111,7 +111,7 @@ const FreonMenuButton = GObject.registerClass(class Freon_FreonMenuButton extend
|
||||
this._addSettingChangedSignal('group-temperature', this._querySensors.bind(this))
|
||||
this._addSettingChangedSignal('group-voltage', this._rerender.bind(this))
|
||||
|
||||
this.connect('destroy', this._onDestroy.bind(this));
|
||||
this.connect('destroy', this._onButtonDestroy.bind(this));
|
||||
|
||||
// don't postprone the first call by update-time.
|
||||
this._querySensors();
|
||||
@@ -264,7 +264,7 @@ const FreonMenuButton = GObject.registerClass(class Freon_FreonMenuButton extend
|
||||
this._settingChangedSignals.push(this._settings.connect('changed::' + key, callback));
|
||||
}
|
||||
|
||||
_onDestroy(){
|
||||
_onButtonDestroy(){
|
||||
this._destroyDriveUtility();
|
||||
this._destroyGpuUtility();
|
||||
Mainloop.source_remove(this._timeoutId);
|
||||
|
||||
Reference in New Issue
Block a user