mirror of
https://github.com/Rafostar/clapper.git
synced 2025-09-01 00:41:58 +02:00
WebApp: get active window prop only once
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user