Skip to content

Commit d281ebf

Browse files
authored
Remove menu entry to allow to remove wallet file (#596)
1 parent b3e71f9 commit d281ebf

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

app/main.development.js

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
import { app, BrowserWindow, Menu, shell } from "electron";
2-
import { getCfg, appDataDirectory, dcrdCfg, dcrwCfg, writeCfgs, getDcrdPath, getWalletFile } from "./config.js";
2+
import { getCfg, appDataDirectory, dcrdCfg, dcrwCfg, writeCfgs, getDcrdPath } from "./config.js";
33
import path from "path";
44
import os from "os";
55
import parseArgs from "minimist";
6-
import mv from "mv";
76
import winston from "winston";
87

98
let menu;
@@ -450,21 +449,6 @@ app.on("ready", async () => {
450449
click() {
451450
shell.openItem(path.join(getDcrdPath(), "logs"));
452451
}
453-
}, {
454-
label: "Remove Wallet (Requires Restart)",
455-
click() {
456-
logger.log(getWalletFile());
457-
closeDCRW();
458-
var origFile = getWalletFile();
459-
var date = new Date();
460-
var backupFile = origFile + "-" + date.toISOString();
461-
mv(origFile, backupFile, function(err) {
462-
if (err != undefined) {
463-
logger.log("error", "Cannot remove file!", err);
464-
}
465-
});
466-
cleanShutdown();
467-
}
468452
}]
469453
}, {
470454
label: "Help",

0 commit comments

Comments
 (0)