fix #1334: saving new files not working

This commit is contained in:
antelle 2019-11-06 19:46:17 +01:00
parent 1f4f3101f2
commit ecf2a65e16
3 changed files with 5 additions and 22 deletions

View File

@ -248,12 +248,6 @@ const Launcher = {
window.cordova.exec(onFileSelected, callback, 'FileChooser', 'choose'); window.cordova.exec(onFileSelected, callback, 'FileChooser', 'choose');
}, },
getCookies(callback) {
// TODO
},
setCookies(cookies) {
// TODO
},
fingerprints: { fingerprints: {
config: { config: {

View File

@ -38,14 +38,13 @@ const Launcher = {
const homePath = this.remReq('electron').app.getPath('userDesktop'); const homePath = this.remReq('electron').app.getPath('userDesktop');
defaultPath = this.joinPath(homePath, defaultPath); defaultPath = this.joinPath(homePath, defaultPath);
} }
this.remReq('electron').dialog.showSaveDialog( this.remReq('electron')
{ .dialog.showSaveDialog({
title: Locale.launcherSave, title: Locale.launcherSave,
defaultPath, defaultPath,
filters: [{ name: Locale.launcherFileFilter, extensions: ['kdbx'] }] filters: [{ name: Locale.launcherFileFilter, extensions: ['kdbx'] }]
}, })
callback .then(res => callback(res.filePath));
);
}, },
getUserDataPath(fileName) { getUserDataPath(fileName) {
if (!this.userDataPath) { if (!this.userDataPath) {
@ -271,17 +270,6 @@ const Launcher = {
}); });
return ps; return ps;
}, },
getCookies(callback) {
this.electron().remote.session.defaultSession.cookies.get({}, callback);
},
setCookies(cookies) {
if (cookies && cookies.length) {
const session = this.electron().remote.session.defaultSession;
for (const cookie of cookies) {
session.cookies.set(cookie, noop);
}
}
},
checkOpenFiles() { checkOpenFiles() {
this.readyToOpenFiles = true; this.readyToOpenFiles = true;
if (this.pendingFileToOpen) { if (this.pendingFileToOpen) {

View File

@ -2,6 +2,7 @@ Release notes
------------- -------------
##### v1.12.3 (TBD) ##### v1.12.3 (TBD)
`-` fix #1335: removed the menubar on Windows and Linux `-` fix #1335: removed the menubar on Windows and Linux
`-` fix #1334: saving new files not working
##### v1.12.2 (2019-11-03) ##### v1.12.2 (2019-11-03)
`-` fixed non-working updater `-` fixed non-working updater