Skip to content

Commit

Permalink
Added fonts (#23)
Browse files Browse the repository at this point in the history
* add fonts

* edit code base on comments

* change onchange function
  • Loading branch information
ovekyc authored and yuda1124 committed Jan 19, 2017
1 parent ac8b469 commit 91868ef
Show file tree
Hide file tree
Showing 9 changed files with 194 additions and 126 deletions.
8 changes: 8 additions & 0 deletions app/core/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@ function registerIPCListener() {
setting.enableServiceHook = arg;
fs.writeFile(settingPath, JSON.stringify(setting, null, ' '));
});
ipcMain.on('change-source-lang', (event, lang) => {
setting.googleSourceLanguage = lang.value;
fs.writeFile(settingPath, JSON.stringify(setting, null, ' '));
});
ipcMain.on('change-target-lang', (event, lang) => {
setting.googleTargetLanguage = lang.value;
fs.writeFile(settingPath, JSON.stringify(setting, null, ' '));
});
}

function hotKeysPressed() {
Expand Down
Loading

0 comments on commit 91868ef

Please sign in to comment.