|
@@ -34,7 +34,6 @@ import * as fs from "promise-fs";
|
|
import { Readable } from "stream";
|
|
import { Readable } from "stream";
|
|
import { deleteDiskCache, openDiskCache } from "./api/cache";
|
|
import { deleteDiskCache, openDiskCache } from "./api/cache";
|
|
import { logToDisk, openLogDirectory } from "./api/common";
|
|
import { logToDisk, openLogDirectory } from "./api/common";
|
|
-import { clearElectronStore } from "./api/electronStore";
|
|
|
|
import {
|
|
import {
|
|
checkExistsAndCreateDir,
|
|
checkExistsAndCreateDir,
|
|
exists,
|
|
exists,
|
|
@@ -332,6 +331,12 @@ const openDirectory = async (dirPath: string): Promise<void> => {
|
|
|
|
|
|
// -
|
|
// -
|
|
|
|
|
|
|
|
+const clearElectronStore = () => {
|
|
|
|
+ ipcRenderer.send("clear-electron-store");
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+// -
|
|
|
|
+
|
|
const updateAndRestart = () => {
|
|
const updateAndRestart = () => {
|
|
ipcRenderer.send("update-and-restart");
|
|
ipcRenderer.send("update-and-restart");
|
|
};
|
|
};
|