mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
1 parent
0e8187c2b0
commit
e1acf7e3d0
7 files changed
+13
-44
No files matched your search
@@ -4,6 +4,9 @@ import windowStateKeeper from "electron-window-state"
|
||||
import type { ClusterId } from "../common/cluster-store";
|
||||
import { clusterStore } from "../common/cluster-store";
|
||||
|
||||
// todo: smooth switching btw clusters (e.g. wait ready-state before switching window)
|
||||
// todo: devtools + manage main-window size btw views
|
||||
|
||||
export class WindowManager {
|
||||
protected activeView: BrowserWindow;
|
||||
protected views = new Map<ClusterId, BrowserWindow>();
|
||||
@@ -42,8 +45,6 @@ export class WindowManager {
|
||||
this.splashWindow.hide();
|
||||
}
|
||||
|
||||
// todo: smooth switching between windows/clusters
|
||||
// todo: devtools + manage main-window size btw views
|
||||
async showView(clusterId: ClusterId) {
|
||||
const cluster = clusterStore.getById(clusterId);
|
||||
if (!cluster) {
|
||||
|
||||
Reference in new issue
Block a user