Skip to content
This repository has been archived by the owner on Apr 3, 2022. It is now read-only.

Commit

Permalink
Fix calls to getBrowserArgs and fix translator refs
Browse files Browse the repository at this point in the history
  • Loading branch information
spikespaz committed Jul 6, 2020
1 parent cb3d6ad commit 8fd9fd8
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions source/configure.d
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,11 @@ import arsd.minigui;

import common;
import updater;
import locale: Translator;

debug import std.stdio: writeln;

void main(string[] args) {
const bool forceUpdate = args.canFind("--update") || args.canFind("-u");

DeflectorSettings.load();

try {
if (DeflectorSettings.interfaceLanguage.length == 0)
Translator.loadDefault();
Expand Down Expand Up @@ -395,7 +391,7 @@ struct ConfigApp {
});

this.wikiButton.addEventListener(EventType.triggered, {
openUri(this.syncApi.browserPath, getBrowserArgs(), WIKI_URL);
openUri(this.syncApi.browserPath, getBrowserArgs(DeflectorSettings.browserPath, DeflectorSettings.useProfile, DeflectorSettings.profileName), WIKI_URL);
});

this.closeButton.addEventListener(EventType.triggered, { exit(0); });
Expand Down Expand Up @@ -499,7 +495,7 @@ struct ConfigApp {
});

this.detailsButton.addEventListener(EventType.triggered, {
openUri(this.syncApi.browserPath, getBrowserArgs(), this.releaseJson["html_url"].str);
openUri(this.syncApi.browserPath, getBrowserArgs(DeflectorSettings.browserPath, DeflectorSettings.useProfile, DeflectorSettings.profileName), this.releaseJson["html_url"].str);
});
}

Expand Down

0 comments on commit 8fd9fd8

Please sign in to comment.