Make quickEdit true by default on Windows

This commit is contained in:
Matheus Fernandes 2017-02-15 18:50:16 -03:00
parent 6cda6cad96
commit 6842e8500a
No known key found for this signature in database
GPG key ID: DD07CA4EA7B65C4F
2 changed files with 7 additions and 4 deletions

View file

@ -79,11 +79,11 @@ module.exports = {
bell: 'SOUND',
// if true, selected text will automatically be copied to the clipboard
copyOnSelect: false,
copyOnSelect: false
// if true, on right click selected text will be copied or pasted if no
// selection is present
quickEdit: false
// selection is present (true by default on Windows)
// quickEdit: true
// URL to custom bell
// bellSoundURL: 'http://example.com/bell.mp3',

View file

@ -189,7 +189,10 @@ const reducer = (state = initial, action) => {
ret.showWindowControls = config.showWindowControls;
}
if (typeof (config.quickEdit) !== 'undefined' &&
if (process.platform === 'win32' &&
(config.quickEdit === undefined || config.quickEdit === null)) {
ret.quickEdit = true;
} else if (typeof (config.quickEdit) !== 'undefined' &&
config.quickEdit !== null) {
ret.quickEdit = config.quickEdit;
}