Added a cli method to check the visibility of a window. (#301)

This commit is contained in:
Jas Singh
2024-10-04 21:10:08 -07:00
committed by GitHub
parent 2db31f497d
commit 8a727a080e
3 changed files with 10 additions and 0 deletions

8
globals/utilities.ts Normal file
View File

@@ -0,0 +1,8 @@
globalThis.isWindowVisible = (windowName: string): boolean => {
const appWindow = App.getWindow(windowName);
if (appWindow === undefined) {
return false;
}
return appWindow.visible;
};