File tree Expand file tree Collapse file tree 6 files changed +29
-1
lines changed Expand file tree Collapse file tree 6 files changed +29
-1
lines changed Original file line number Diff line number Diff line change 22
22
- name : Checkout code
23
23
uses : actions/checkout@v4
24
24
with :
25
- ref : ${{ github.head_ref }}
25
+ ref : ${{ github.head_ref || github.sha }}
26
26
27
27
- name : Check PHP code style issues
28
28
if : github.event_name == 'push'
Original file line number Diff line number Diff line change 36
36
*/
37
37
'copyright ' => env ('NATIVEPHP_APP_COPYRIGHT ' ),
38
38
39
+ /**
40
+ * The description of your application.
41
+ */
42
+ 'description ' => env ('NATIVEPHP_APP_DESCRIPTION ' , 'An awesome app built with NativePHP ' ),
43
+
44
+ /**
45
+ * The Website of your application.
46
+ */
47
+ 'website ' => env ('NATIVEPHP_APP_WEBSITE ' , 'https://nativephp.com ' ),
48
+
39
49
/**
40
50
* The default service provider for your application. This provider
41
51
* takes care of bootstrapping your application and configuring
Original file line number Diff line number Diff line change @@ -14,6 +14,11 @@ public function quit(): void
14
14
$ this ->client ->post ('app/quit ' );
15
15
}
16
16
17
+ public function relaunch (): void
18
+ {
19
+ $ this ->client ->post ('app/relaunch ' );
20
+ }
21
+
17
22
public function focus (): void
18
23
{
19
24
$ this ->client ->post ('app/focus ' );
Original file line number Diff line number Diff line change 6
6
7
7
/**
8
8
* @method static void quit()
9
+ * @method static void relaunch()
9
10
* @method static void focus()
10
11
* @method static void hide()
11
12
* @method static bool isHidden()
Original file line number Diff line number Diff line change @@ -32,6 +32,8 @@ class MenuBar
32
32
33
33
protected bool $ showDockIcon = false ;
34
34
35
+ protected bool $ showOnAllWorkspaces = false ;
36
+
35
37
protected Client $ client ;
36
38
37
39
public function __construct ()
@@ -95,6 +97,13 @@ public function alwaysOnTop($alwaysOnTop = true): self
95
97
return $ this ;
96
98
}
97
99
100
+ public function showOnAllWorkspaces ($ showOnAllWorkspaces = true ): self
101
+ {
102
+ $ this ->showOnAllWorkspaces = $ showOnAllWorkspaces ;
103
+
104
+ return $ this ;
105
+ }
106
+
98
107
public function withContextMenu (Menu $ menu ): self
99
108
{
100
109
$ this ->contextMenu = $ menu ;
@@ -122,6 +131,7 @@ public function toArray(): array
122
131
'onlyShowContextMenu ' => $ this ->onlyShowContextMenu ,
123
132
'contextMenu ' => ! is_null ($ this ->contextMenu ) ? $ this ->contextMenu ->toArray ()['submenu ' ] : null ,
124
133
'alwaysOnTop ' => $ this ->alwaysOnTop ,
134
+ 'showOnAllWorkspaces ' => $ this ->showOnAllWorkspaces ,
125
135
];
126
136
}
127
137
}
Original file line number Diff line number Diff line change 9
9
$ menuBar = MenuBar::create ()
10
10
->showDockIcon ()
11
11
->alwaysOnTop ()
12
+ ->showOnAllWorkspaces ()
12
13
->label ('milwad ' )
13
14
->icon ('nativephp.png ' )
14
15
->url ('https://github.com/milwad-dev ' )
22
23
23
24
$ this ->assertTrue ($ menuBarArray ['showDockIcon ' ]);
24
25
$ this ->assertTrue ($ menuBarArray ['alwaysOnTop ' ]);
26
+ $ this ->assertTrue ($ menuBarArray ['showOnAllWorkspaces ' ]);
25
27
$ this ->assertEquals ('milwad ' , $ menuBarArray ['label ' ]);
26
28
$ this ->assertEquals ('https://github.com/milwad-dev ' , $ menuBarArray ['url ' ]);
27
29
$ this ->assertEquals ('nativephp.png ' , $ menuBarArray ['icon ' ]);
You can’t perform that action at this time.
0 commit comments