CHANGE: removed actor disconnect due to error
This commit is contained in:
17
extension.ts
17
extension.ts
@@ -1,5 +1,6 @@
|
||||
import Gio from "gi://Gio";
|
||||
import Meta from "gi://Meta";
|
||||
import Clutter from "gi://Clutter";
|
||||
import { Extension } from "resource:///org/gnome/shell/extensions/extension.js";
|
||||
import { EventEmitter } from "resource:///org/gnome/shell/misc/signals.js";
|
||||
import * as Main from "resource:///org/gnome/shell/ui/main.js";
|
||||
@@ -53,13 +54,14 @@ export default class MyExtension extends Extension {
|
||||
}
|
||||
|
||||
disable() {
|
||||
for (const actorSignalIds of [this._actorSignalIds, this._windowSignalIds]) {
|
||||
for (const [actor, signalIds] of actorSignalIds!) {
|
||||
for (const signalId of signalIds) {
|
||||
actor.disconnect(signalId);
|
||||
}
|
||||
}
|
||||
}
|
||||
// for (const actorSignalIds of [this._actorSignalIds, this._windowSignalIds]) {
|
||||
// for (const [actor, signalIds] of actorSignalIds!) {
|
||||
// for (const signalId of signalIds) {
|
||||
// console.log("SignalID ", signalId);
|
||||
// console.log("Actor ", actor instanceof Clutter.Actor);
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
this._actorSignalIds?.clear();
|
||||
this._windowSignalIds?.clear();
|
||||
|
||||
@@ -98,7 +100,6 @@ export default class MyExtension extends Extension {
|
||||
}
|
||||
|
||||
_setFloat(float: boolean) {
|
||||
console.log("Float: ", float);
|
||||
Main.panel.add_style_class_name(float ? "floating" : "solid");
|
||||
Main.panel.remove_style_class_name(float ? "solid" : "floating");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user