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');
|
window.cordova.exec(onFileSelected, callback, 'FileChooser', 'choose');
|
||||||
},
|
},
|
||||||
getCookies(callback) {
|
|
||||||
// TODO
|
|
||||||
},
|
|
||||||
setCookies(cookies) {
|
|
||||||
// TODO
|
|
||||||
},
|
|
||||||
|
|
||||||
fingerprints: {
|
fingerprints: {
|
||||||
config: {
|
config: {
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue