1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-11 07:52:50 -05:00

feat: Enable multi-monitor notepad support

- Notepad will now open on the currently focused monitor/workspace display by default
This commit is contained in:
purian23
2025-09-04 20:57:02 -04:00
parent 4742636eb3
commit af5094b479
2 changed files with 65 additions and 12 deletions

View File

@@ -26,9 +26,9 @@ PanelWindow {
if (!notepadVariants || !notepadVariants.instances) return null
for (var i = 0; i < notepadVariants.instances.length; i++) {
var instance = notepadVariants.instances[i]
if (instance.modelData && instance.modelData.name === root.screen?.name) {
return instance
var loader = notepadVariants.instances[i]
if (loader.modelData && loader.modelData.name === root.screen?.name) {
return loader.ensureLoaded()
}
}
return null