Skip to content

Commit

Permalink
Fix dirty folder status flag (was not updating in UI), bump to 5.0.0-RC1
Browse files Browse the repository at this point in the history
  • Loading branch information
jtsage committed Aug 20, 2024
1 parent e7dd6e8 commit 04b8375
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
"DDSD",
"DEDI",
"deepl",
"deepmerge",
"DESCVERSION",
"digestate",
"docdash",
Expand Down
1 change: 1 addition & 0 deletions lib/modAssist_func_lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ const general = {

toggleFolderDirty : (newValue = true) => {
serveIPC.isFoldersDirty = newValue
serveIPC.windowLib.sendToValidWindow('main', 'status:all')
},

initUpdater : () => {
Expand Down
1 change: 1 addition & 0 deletions modAssist_main.js
Original file line number Diff line number Diff line change
Expand Up @@ -881,6 +881,7 @@ ipcMain.on('main:runUpdateInstall', () => {
ipcMain.handle('state:all', () => { return {
botStatus : serveIPC.modCollect.botDetails,
dangerDebug : serveIPC.isDebugDanger,
foldersDirty : serveIPC.isFoldersDirty,
gameRunning : serveIPC.isGameRunning,
gameRunningEnabled : serveIPC.isGamePolling,
pinMini : serveIPC.windowLib.isAlwaysOnTop('mini'),
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fsg-mod-assistant",
"version": "4.9.84",
"version": "4.9.91",
"description": "FSG Farm Sim Mod Assistant",
"main": "modAssist_main.js",
"homepage": "https://github.com/FSGModding/FSG_Mod_Assistant#readme",
Expand Down
2 changes: 2 additions & 0 deletions renderer/renderJS/main_ui_lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,10 @@ class StateManager {
window.main_IPC.updateState().then((status) => {
MA.byId('debug_danger_bubble').clsShow(status.dangerDebug)
MA.byId('topBar-update').clsShow(status.updateReady)
this.flag.folderDirty = status.foldersDirty
this.flag.gameRunning = status.gameRunning
this.flag.launchEnable = status.gameRunningEnabled
MA.byId('dirty_folders').clsShow(this.flag.folderDirty)
MA.byId('gameRunningBubble')
.clsShow(this.flag.launchEnable)
.clsOrGate(this.flag.gameRunning, 'text-success', 'text-danger')
Expand Down

0 comments on commit 04b8375

Please sign in to comment.