WebApp: get active window prop only once

This commit is contained in:
Rafał Dzięgiel
2021-02-23 12:37:33 +01:00
parent a309ef6099
commit 886dad97c5

View File

@@ -10,12 +10,14 @@ class ClapperAppRemote extends AppBase
{ {
super.vfunc_startup(); super.vfunc_startup();
const window = this.active_window;
const clapperWidget = new WidgetRemote(); const clapperWidget = new WidgetRemote();
this.active_window.set_child(clapperWidget); window.set_child(clapperWidget);
const headerBar = new HeaderBarRemote(); const headerBar = new HeaderBarRemote();
this.active_window.set_titlebar(headerBar); window.set_titlebar(headerBar);
this.active_window.maximize(); window.maximize();
} }
}); });