Skip to content

Commit 57f6e60

Browse files
committed
chore: adding certificates manager menu
1 parent a9fef10 commit 57f6e60

File tree

6 files changed

+33
-22
lines changed

6 files changed

+33
-22
lines changed

app.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ class ArcInit {
242242
*/
243243
commandHandler(e, action, ...args) {
244244
// console.info('Renderer command handled: ', action);
245-
const app = this.app;
245+
const { app } = this;
246246
switch (action) {
247247
case 'show-settings': app.openSettings(); break;
248248
case 'about': app.openAbout(); break;
@@ -267,6 +267,7 @@ class ArcInit {
267267
case 'open-onboarding': app.openOnboarding(); break;
268268
case 'open-workspace-details': app.openWorkspaceDetails(); break;
269269
case 'export-workspace': this.exportWorkspace(); break;
270+
case 'open-client-certificates': app.openClientCertificates(); break;
270271
default:
271272
console.warn('Unknown command', action, args);
272273
}

menus/darwin.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,10 @@
265265
"label": "Cookie manager",
266266
"command": "application:open-cookie-manager"
267267
},
268+
{
269+
"label": "Client certificates",
270+
"command": "application:open-client-certificates"
271+
},
268272
{
269273
"type": "separator"
270274
},

menus/linux.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,10 @@
214214
"label": "Cookie manager",
215215
"command": "application:open-cookie-manager"
216216
},
217+
{
218+
"label": "Client certificates",
219+
"command": "application:open-client-certificates"
220+
},
217221
{
218222
"type": "separator"
219223
},

menus/win.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,10 @@
220220
"label": "Cookie manager",
221221
"command": "application:open-cookie-manager"
222222
},
223+
{
224+
"label": "Client certificates",
225+
"command": "application:open-client-certificates"
226+
},
223227
{
224228
"type": "separator"
225229
},

package-lock.json

Lines changed: 15 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/main/arc-environment.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,11 @@ class ArcEnvironment {
4141
ipcMain.on('open-external-url', this._externalUrlHandler.bind(this));
4242
}
4343

44-
loadEnvironment() {
44+
async loadEnvironment() {
4545
log.debug('Loading user configuration.');
46-
return this.config.load()
47-
.then((settings) => {
48-
log.debug('User configuration ready.');
49-
this._postConfig(settings);
50-
});
46+
const settings = await this.config.load();
47+
log.debug('User configuration ready.');
48+
this._postConfig(settings);
5149
}
5250

5351
registerHandlers() {

0 commit comments

Comments
 (0)