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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user