Fix IMC Stupid.

This commit is contained in:
Ottermandias 2024-05-28 11:20:17 +02:00
parent eb2a9b8109
commit 255d11974f
2 changed files with 2 additions and 1 deletions

View file

@ -204,7 +204,7 @@ public class FileEditor<T>(
private void SaveButton()
{
var canSave = _changed && _currentFile != null && _currentFile.Valid;
var canSave = _changed && _currentFile is { Valid: true };
if (ImGuiUtil.DrawDisabledButton("Save to File", Vector2.Zero,
$"Save the selected {fileType} file with all changes applied. This is not revertible.", !canSave))
{

View file

@ -26,6 +26,7 @@ public static class ImcManipulationDrawer
};
identifier = identifier with
{
ObjectType = type,
EquipSlot = equipSlot,
SecondaryId = identifier.SecondaryId == 0 ? 1 : identifier.SecondaryId,
};