fixed lag after installing a theme
This commit is contained in:
parent
99d509c96f
commit
365df407ab
1 changed files with 5 additions and 0 deletions
|
@ -850,6 +850,7 @@ export class BrowserWindow {
|
||||||
})
|
})
|
||||||
|
|
||||||
ipcMain.handle("get-github-plugin", async (event, url) => {
|
ipcMain.handle("get-github-plugin", async (event, url) => {
|
||||||
|
await this.StopWatcher()
|
||||||
const returnVal = {
|
const returnVal = {
|
||||||
success: true,
|
success: true,
|
||||||
theme: null,
|
theme: null,
|
||||||
|
@ -894,9 +895,11 @@ export class BrowserWindow {
|
||||||
returnVal.success = false;
|
returnVal.success = false;
|
||||||
}
|
}
|
||||||
BrowserWindow.win.webContents.send("plugin-installed", returnVal);
|
BrowserWindow.win.webContents.send("plugin-installed", returnVal);
|
||||||
|
this.StartWatcher(utils.getPath('themes'));
|
||||||
});
|
});
|
||||||
|
|
||||||
ipcMain.handle("get-github-theme", async (event, url) => {
|
ipcMain.handle("get-github-theme", async (event, url) => {
|
||||||
|
await this.StopWatcher()
|
||||||
const returnVal = {
|
const returnVal = {
|
||||||
success: true,
|
success: true,
|
||||||
theme: null,
|
theme: null,
|
||||||
|
@ -941,6 +944,8 @@ export class BrowserWindow {
|
||||||
returnVal.success = false;
|
returnVal.success = false;
|
||||||
}
|
}
|
||||||
BrowserWindow.win.webContents.send("theme-installed", returnVal);
|
BrowserWindow.win.webContents.send("theme-installed", returnVal);
|
||||||
|
this.StartWatcher(utils.getPath('themes'));
|
||||||
|
BrowserWindow.win.webContents.send("theme-update", "")
|
||||||
});
|
});
|
||||||
|
|
||||||
ipcMain.on("get-themes", (event, _key) => {
|
ipcMain.on("get-themes", (event, _key) => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue