Fix dirty flag in Item Swap Window.

This commit is contained in:
Ottermandias 2022-12-29 21:11:54 +01:00
parent cc55ebb28f
commit 3eb35c479e

View file

@ -122,6 +122,8 @@ public class ItemSwapWindow : IDisposable
_loadException = e;
}
}
_dirty = false;
}
private static string SwapToString( Swap swap )
@ -215,7 +217,7 @@ public class ItemSwapWindow : IDisposable
using var tab = ImRaii.TabItem( newTab.ToString() );
if( tab )
{
_dirty = _lastTab != newTab;
_dirty |= _lastTab != newTab;
_lastTab = newTab;
}