CHANGE: removed actor disconnect due to error
This commit is contained in:
16
dist/extension.js
vendored
16
dist/extension.js
vendored
@@ -38,13 +38,14 @@ export default class MyExtension extends Extension {
|
||||
this._actorSignalIds.set(global.window_manager, [global.window_manager.connect("switch-workspace", this._updateFloating.bind(this))]);
|
||||
}
|
||||
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();
|
||||
this._setFloat(false);
|
||||
@@ -80,7 +81,6 @@ export default class MyExtension extends Extension {
|
||||
this._setFloat(!maximized);
|
||||
}
|
||||
_setFloat(float) {
|
||||
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