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

Commit

Permalink
Move settings updates to change events
Browse files Browse the repository at this point in the history
  • Loading branch information
spikespaz committed Aug 19, 2019
1 parent 6cb7307 commit aebb96c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions source/main.d
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ void main(string[] args) {
browserPath.content = browsers.get(browserSelect.currentText, "");
}

settings.browserPath = browserPath.content;

debug writeln(browserPath.content);
});

Expand All @@ -120,13 +122,12 @@ void main(string[] args) {
engineUrl.content = engines[engineSelect.currentText];
}

settings.engineURL = engineUrl.content;

debug writeln(engineUrl.content);
});

applyButton.addEventListener(EventType.triggered, {
settings.browserPath = browserPath.content;
settings.engineURL = engineUrl.content;

writeSettings(settings);

debug writeln(settings);
Expand Down

0 comments on commit aebb96c

Please sign in to comment.