@@ -174,31 +174,43 @@ export default class ElectronPlatform extends VectorBasePlatform {
174
174
}
175
175
176
176
async getAppVersion ( ) : Promise < string > {
177
- return await this . _ipcCall ( 'getAppVersion' ) ;
177
+ return this . _ipcCall ( 'getAppVersion' ) ;
178
178
}
179
179
180
180
supportsAutoLaunch ( ) : boolean {
181
181
return true ;
182
182
}
183
183
184
184
async getAutoLaunchEnabled ( ) : boolean {
185
- return await this . _ipcCall ( 'getAutoLaunchEnabled' ) ;
185
+ return this . _ipcCall ( 'getAutoLaunchEnabled' ) ;
186
186
}
187
187
188
188
async setAutoLaunchEnabled ( enabled : boolean ) : void {
189
- return await this . _ipcCall ( 'setAutoLaunchEnabled' , enabled ) ;
189
+ return this . _ipcCall ( 'setAutoLaunchEnabled' , enabled ) ;
190
+ }
191
+
192
+ supportsAutoHideMenuBar ( ) : boolean {
193
+ return true ;
194
+ }
195
+
196
+ async getAutoHideMenuBarEnabled ( ) : boolean {
197
+ return this . _ipcCall ( 'getAutoHideMenuBarEnabled' ) ;
198
+ }
199
+
200
+ async setAutoHideMenuBarEnabled ( enabled : boolean ) : void {
201
+ return this . _ipcCall ( 'setAutoHideMenuBarEnabled' , enabled ) ;
190
202
}
191
203
192
204
supportsMinimizeToTray ( ) : boolean {
193
205
return true ;
194
206
}
195
207
196
208
async getMinimizeToTrayEnabled ( ) : boolean {
197
- return await this . _ipcCall ( 'getMinimizeToTrayEnabled' ) ;
209
+ return this . _ipcCall ( 'getMinimizeToTrayEnabled' ) ;
198
210
}
199
211
200
212
async setMinimizeToTrayEnabled ( enabled : boolean ) : void {
201
- return await this . _ipcCall ( 'setMinimizeToTrayEnabled' , enabled ) ;
213
+ return this . _ipcCall ( 'setMinimizeToTrayEnabled' , enabled ) ;
202
214
}
203
215
204
216
async canSelfUpdate ( ) : boolean {
0 commit comments