fix #620: clearing middle-click clipboard in Linux

This commit is contained in:
antelle 2020-05-13 21:20:26 +02:00
parent 24bcc758e7
commit 07e918965b
No known key found for this signature in database
GPG Key ID: 094A2F2D6136A4EE
2 changed files with 6 additions and 1 deletions

View File

@ -177,7 +177,11 @@ const Launcher = {
return this.electron().clipboard.readText();
},
clearClipboardText() {
return this.electron().clipboard.clear();
const { clipboard } = this.electron();
clipboard.clear();
if (process.platform === 'linux') {
clipboard.clear('selection');
}
},
minimizeApp() {
this.remoteApp().minimizeApp({

View File

@ -10,6 +10,7 @@ Release notes
`+` #1350: clearing master password after auto lock period
`-` fix #1463: copying the original url instead of adding https:
`*` disabled markdown in export
`-` fix #620: clearing middle-click clipboard in Linux
##### v1.14.2 (2020-05-04)
`-` distinct redirect URIs for storage providers