1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-08-08 14:38:30 -04:00

changelog: enable for 1.5

This commit is contained in:
bbedward
2026-07-07 09:16:54 -04:00
parent b447e16374
commit 0c4c5fc146
4 changed files with 83 additions and 52 deletions
+17 -3
View File
@@ -4,6 +4,7 @@ import QtQuick
import Quickshell
import Quickshell.Wayland
import qs.Common
import qs.Services
Singleton {
id: root
@@ -850,10 +851,23 @@ Singleton {
}
}
function notepadSlideoutForFocusedScreen() {
if (!notepadSlideouts || notepadSlideouts.length === 0)
return null;
const focused = BarWidgetService.getFocusedScreenName();
if (focused) {
for (var i = 0; i < notepadSlideouts.length; i++) {
if (notepadSlideouts[i]?.modelData?.name === focused)
return notepadSlideouts[i];
}
}
return notepadSlideouts[0];
}
function openNotepadSlideout() {
notepadPopout?.hide();
if (notepadSlideouts.length > 0) {
notepadSlideouts[0]?.show();
notepadSlideoutForFocusedScreen()?.show();
}
}
@@ -892,7 +906,7 @@ Singleton {
return;
}
if (notepadSlideouts.length > 0) {
notepadSlideouts[0]?.hide();
notepadSlideoutForFocusedScreen()?.hide();
}
}
@@ -902,7 +916,7 @@ Singleton {
return;
}
if (notepadSlideouts.length > 0) {
notepadSlideouts[0]?.toggle();
notepadSlideoutForFocusedScreen()?.toggle();
}
}