mirror of
https://github.com/zen-browser/components.git
synced 2025-07-08 13:49:59 +02:00
Fixed workspaces dialog
This commit is contained in:
parent
7ebaed73c0
commit
775b5288fb
2 changed files with 6 additions and 4 deletions
|
@ -801,9 +801,10 @@ var gZenKeyboardShortcutsManager = {
|
||||||
}
|
}
|
||||||
key.remove();
|
key.remove();
|
||||||
}
|
}
|
||||||
if (mainKeyset.children.length > 0) {
|
// We dont check this anymore since we are skiping internal keys
|
||||||
throw new Error('Child list not empty');
|
//if (mainKeyset.children.length > 0) {
|
||||||
}
|
// throw new Error('Child list not empty');
|
||||||
|
//}
|
||||||
|
|
||||||
for (let key of this._currentShortcutList) {
|
for (let key of this._currentShortcutList) {
|
||||||
if (key.isEmpty() || key.isInternal()) {
|
if (key.isEmpty() || key.isInternal()) {
|
||||||
|
|
|
@ -539,9 +539,9 @@ var ZenWorkspaces = new (class extends ZenMultiWindowFeature {
|
||||||
let icon = document.querySelector('#PanelUI-zen-workspaces-create-icons-container [selected]');
|
let icon = document.querySelector('#PanelUI-zen-workspaces-create-icons-container [selected]');
|
||||||
icon?.removeAttribute('selected');
|
icon?.removeAttribute('selected');
|
||||||
await this.createAndSaveWorkspace(workspaceName, false, icon?.label);
|
await this.createAndSaveWorkspace(workspaceName, false, icon?.label);
|
||||||
document.getElementById('PanelUI-zen-workspaces').hidePopup(true);
|
|
||||||
await this._updateWorkspacesButton();
|
await this._updateWorkspacesButton();
|
||||||
await this._propagateWorkspaceData();
|
await this._propagateWorkspaceData();
|
||||||
|
this.closeWorkspacesSubView();
|
||||||
}
|
}
|
||||||
|
|
||||||
async saveWorkspaceFromEdit() {
|
async saveWorkspaceFromEdit() {
|
||||||
|
@ -559,6 +559,7 @@ var ZenWorkspaces = new (class extends ZenMultiWindowFeature {
|
||||||
workspaceData.icon = icon?.label;
|
workspaceData.icon = icon?.label;
|
||||||
await this.saveWorkspace(workspaceData);
|
await this.saveWorkspace(workspaceData);
|
||||||
await this._propagateWorkspaceData();
|
await this._propagateWorkspaceData();
|
||||||
|
this.closeWorkspacesSubView();
|
||||||
}
|
}
|
||||||
|
|
||||||
onWorkspaceCreationNameChange(event) {
|
onWorkspaceCreationNameChange(event) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue