Skip to content
This repository was archived by the owner on Dec 3, 2025. It is now read-only.

Commit b033a4b

Browse files
committed
Fix TDM FM losing installed state after settings OK or import
1 parent 1e20664 commit b033a4b

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

AngelLoader/Core.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -714,6 +714,10 @@ void SetPlayWithoutFMControlsState_Once()
714714
sortAndSetFilter = true;
715715
}
716716

717+
// Do this BEFORE the view refresh!
718+
// Prevents the Installed TDM FM from losing its Installed=true state until the next refresh.
719+
TDM.UpdateTDMDataFromDisk(refresh: true);
720+
717721
if (sortAndSetFilter)
718722
{
719723
// Just always force refresh of FM to make sure whatever we've changed will take.
@@ -728,7 +732,6 @@ void SetPlayWithoutFMControlsState_Once()
728732
View.RefreshMods();
729733
}
730734

731-
TDM.UpdateTDMDataFromDisk(refresh: true);
732735
TDMWatchers.DeferredWatchersEnable(enableTDMWatchers);
733736

734737
Ini.WriteConfigIni();

AngelLoader/Import.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ tags wouldn't work because they're only in TagsString and blah blah blah.
205205
we may as well let it do the work.
206206
*/
207207
FindFMs.Find();
208+
TDM.UpdateTDMDataFromDisk(refresh: false);
208209
}
209210
}
210211
}

0 commit comments

Comments
 (0)