Add and fix
This commit is contained in:
parent
834fa719b2
commit
5d8ca9566a
|
@ -116,6 +116,9 @@ ipc.on('langres', function (event, arg) {
|
|||
ipc.on('exportSettingsFile', function (event, arg) {
|
||||
postMessage(["exportSettingsCore", arg], "*")
|
||||
});
|
||||
ipc.on('exportAllComplete', function (event, arg) {
|
||||
postMessage(["alert", "Complete"], "*")
|
||||
});
|
||||
ipc.on('config', function (event, arg) {
|
||||
postMessage(["importSettingsCore", arg], "*")
|
||||
});
|
||||
|
|
|
@ -323,7 +323,11 @@ function exportSettingsCore() {
|
|||
var tagarr = localStorage.getItem("tag");
|
||||
var favtag = JSON.parse(tagarr);
|
||||
exp.favoriteTags = favtag;
|
||||
exp.version = "2.1"
|
||||
exp.revisons = 2.1
|
||||
exp.meta = {}
|
||||
exp.meta.date = new Date()
|
||||
exp.meta.thedesk = localStorage.getItem("ver")
|
||||
exp.meta.platform = localStorage.getItem("platform")
|
||||
return exp;
|
||||
}
|
||||
function importSettings() {
|
||||
|
|
|
@ -196,6 +196,7 @@ function system(mainWindow, dir, lang, dirname) {
|
|||
|
||||
ipc.on('export', (e, args) => {
|
||||
fs.writeFileSync(args[0], JSON5.stringify(args[1]));
|
||||
e.sender.webContents.send('exportAllComplete', "");
|
||||
});
|
||||
//フォント
|
||||
function object_array_sort(data, key, order, fn) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user