Skip to content

Commit 29a113d

Browse files
force priority recache after switching numeric/toggle mode
1 parent 4c54ad9 commit 29a113d

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

Assemblies/WorkTab.dll

0 Bytes
Binary file not shown.

Source/Core/PriorityManager.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,12 @@ public bool ShowPriorities
3737
if ( value == Find.PlaySettings.useWorkPriorities )
3838
return;
3939

40+
// update setting
4041
Find.PlaySettings.useWorkPriorities = value;
42+
43+
// force re-cache of all pawns
44+
foreach (var pawn in priorities.Keys.ToList())
45+
pawn.workSettings.Notify_UseWorkPrioritiesChanged();
4146
}
4247
}
4348
private List<Pawn> pawnsScribe;

0 commit comments

Comments
 (0)