mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +00:00
maximize app window by default
This commit is contained in:
parent
0db319a519
commit
ffe2cdf5a6
1 changed files with 7 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue