summaryrefslogtreecommitdiffstats
path: root/extensions/vertical-workspaces/workspaceSwitcherPopup.js
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-08 16:02:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-08 16:02:14 +0000
commit52f118cd4c2fbdd81a6ef463835a20cb3d6a3667 (patch)
tree0904907fa04c7c1fe36fe8cdefab7e27b477723a /extensions/vertical-workspaces/workspaceSwitcherPopup.js
parentUpdating multi-monitors-add-on to version 26 [d8ea040]. (diff)
downloadgnome-shell-extensions-extra-52f118cd4c2fbdd81a6ef463835a20cb3d6a3667.tar.xz
gnome-shell-extensions-extra-52f118cd4c2fbdd81a6ef463835a20cb3d6a3667.zip
Updating vertical-workspaces to version 28 [891a8df].
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--extensions/vertical-workspaces/workspaceSwitcherPopup.js55
1 files changed, 0 insertions, 55 deletions
diff --git a/extensions/vertical-workspaces/workspaceSwitcherPopup.js b/extensions/vertical-workspaces/workspaceSwitcherPopup.js
deleted file mode 100644
index 5401903..0000000
--- a/extensions/vertical-workspaces/workspaceSwitcherPopup.js
+++ /dev/null
@@ -1,55 +0,0 @@
-/**
- * Vertical Workspaces
- * workspacesSwitcherPopup.js
- *
- * @author GdH <G-dH@github.com>
- * @copyright 2022 - 2023
- * @license GPL-3.0
- *
- */
-
-'use strict';
-
-const Main = imports.ui.main;
-const WorkspaceSwitcherPopup = imports.ui.workspaceSwitcherPopup;
-
-const ExtensionUtils = imports.misc.extensionUtils;
-const Me = ExtensionUtils.getCurrentExtension();
-
-const _Util = Me.imports.util;
-let _overrides;
-
-let opt;
-var _activateSearchProvider;
-
-function update(reset = false) {
- if (_overrides) {
- _overrides.removeAll();
- }
-
- if (reset) {
- _overrides = null;
- opt = null;
- return;
- }
-
- opt = Me.imports.settings.opt;
-
- _overrides = new _Util.Overrides();
-
- if (opt.ORIENTATION) {// 1-VERTICAL, 0-HORIZONTAL
- const settings = ExtensionUtils.getSettings('org.gnome.shell');
- const enabled = settings.get_strv('enabled-extensions');
- const allowWsPopupInjection = !(enabled.includes('workspace-switcher-manager@G-dH.github.com') || enabled.includes('WsSwitcherPopupManager@G-dH.github.com-dev'));
- if (opt.shellVersion >= 42 && allowWsPopupInjection)
- _overrides.addInjection('WorkspaceSwitcherPopup', WorkspaceSwitcherPopup.WorkspaceSwitcherPopup.prototype, WorkspaceSwitcherPopupInjections);
- }
-}
-
-const WorkspaceSwitcherPopupInjections = {
- _init: function() {
- if (this._list) {
- this._list.vertical = true;
- }
- }
-}