Browse Source

maximize app window by default

PHP-GTK3
yggverse 4 months ago
parent
commit
ffe2cdf5a6
  1. 7
      src/Entity/Window.php

7
src/Entity/Window.php

@ -20,6 +20,8 @@ class Window
private int $_width = 640; private int $_width = 640;
private int $_height = 480; private int $_height = 480;
private bool $_maximize = true;
public function __construct( public function __construct(
\Yggverse\Yoda\Model\Database $database \Yggverse\Yoda\Model\Database $database
) { ) {
@ -32,6 +34,11 @@ class Window
$this->_height $this->_height
); );
if ($this->_maximize)
{
$this->gtk->maximize();
}
$this->header = new Header( $this->header = new Header(
$this $this
); );

Loading…
Cancel
Save