Skip to content

Commit

Permalink
fix #14
Browse files Browse the repository at this point in the history
  • Loading branch information
kumakichi committed Feb 2, 2024
1 parent ca9d47c commit 9373862
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"webpack": "^4.46.0"
},
"name": "Deepl-Linux-Electron",
"version": "1.2.0",
"version": "1.3.1",
"scripts": {
"dev": "electron-webpack dev",
"compile": "electron-webpack",
Expand Down
4 changes: 3 additions & 1 deletion src/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ app.setAboutPanelOptions({

app.on('ready', function() {
let Menu = require('electron').Menu;
isRemoveLineBreaks = store.get('remove_line_breaks');
let templateArr = [{
label: "Settings",
submenu: [{
Expand All @@ -54,9 +55,10 @@ app.on('ready', function() {
}, {
label: "Remove Line Breaks",
type: "checkbox",
checked: false,
checked: isRemoveLineBreaks,
click: (item) => {
isRemoveLineBreaks = item.checked;
store.set('remove_line_breaks', isRemoveLineBreaks);
win.webContents.send('translateClipboard', item.checked);
}
}, {
Expand Down

0 comments on commit 9373862

Please sign in to comment.