mirror of https://github.com/keeweb/keeweb.git
fix #1334: saving new files not working
This commit is contained in:
parent
1f4f3101f2
commit
ecf2a65e16
|
@ -248,12 +248,6 @@ const Launcher = {
|
|||
|
||||
window.cordova.exec(onFileSelected, callback, 'FileChooser', 'choose');
|
||||
},
|
||||
getCookies(callback) {
|
||||
// TODO
|
||||
},
|
||||
setCookies(cookies) {
|
||||
// TODO
|
||||
},
|
||||
|
||||
fingerprints: {
|
||||
config: {
|
||||
|
|
|
@ -38,14 +38,13 @@ const Launcher = {
|
|||
const homePath = this.remReq('electron').app.getPath('userDesktop');
|
||||
defaultPath = this.joinPath(homePath, defaultPath);
|
||||
}
|
||||
this.remReq('electron').dialog.showSaveDialog(
|
||||
{
|
||||
this.remReq('electron')
|
||||
.dialog.showSaveDialog({
|
||||
title: Locale.launcherSave,
|
||||
defaultPath,
|
||||
filters: [{ name: Locale.launcherFileFilter, extensions: ['kdbx'] }]
|
||||
},
|
||||
callback
|
||||
);
|
||||
})
|
||||
.then(res => callback(res.filePath));
|
||||
},
|
||||
getUserDataPath(fileName) {
|
||||
if (!this.userDataPath) {
|
||||
|
@ -271,17 +270,6 @@ const Launcher = {
|
|||
});
|
||||
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() {
|
||||
this.readyToOpenFiles = true;
|
||||
if (this.pendingFileToOpen) {
|
||||
|
|
|
@ -2,6 +2,7 @@ Release notes
|
|||
-------------
|
||||
##### v1.12.3 (TBD)
|
||||
`-` fix #1335: removed the menubar on Windows and Linux
|
||||
`-` fix #1334: saving new files not working
|
||||
|
||||
##### v1.12.2 (2019-11-03)
|
||||
`-` fixed non-working updater
|
||||
|
|
Loading…
Reference in New Issue