Skip to content

Commit d5eb3fc

Browse files
committed
watch for changes in existing merged packs
1 parent 9cf8941 commit d5eb3fc

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "wh3mm",
33
"productName": "wh3mm",
4-
"version": "1.25.1",
4+
"version": "1.26.0",
55
"description": "WH3 Mod Manager",
66
"main": ".webpack/main",
77
"scripts": {

src/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,10 @@ const getAllMods = async (mainWindow: BrowserWindow) => {
337337
})
338338
.on("unlink", async (path) => {
339339
onPackDeleted(path);
340+
})
341+
.on("change", async (path) => {
342+
onPackDeleted(path);
343+
onNewPackFound(path);
340344
});
341345
}
342346
};

0 commit comments

Comments
 (0)