From ffe2cdf5a6e13b3cfe949c2009dbe7a54d197303 Mon Sep 17 00:00:00 2001 From: yggverse Date: Fri, 5 Jul 2024 04:12:52 +0300 Subject: [PATCH] maximize app window by default --- src/Entity/Window.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Entity/Window.php b/src/Entity/Window.php index b1d23e5a..161cc241 100644 --- a/src/Entity/Window.php +++ b/src/Entity/Window.php @@ -20,6 +20,8 @@ class Window private int $_width = 640; private int $_height = 480; + private bool $_maximize = true; + public function __construct( \Yggverse\Yoda\Model\Database $database ) { @@ -32,6 +34,11 @@ class Window $this->_height ); + if ($this->_maximize) + { + $this->gtk->maximize(); + } + $this->header = new Header( $this );