Made not having a project loaded less crashy

This commit is contained in:
Simon Lübeß
2026-08-02 15:58:02 +02:00
parent 9b14cdddb9
commit 164384e55e
3 changed files with 74 additions and 33 deletions
+13
View File
@@ -743,5 +743,18 @@ namespace ImGui
PushStyleVar(.DockingSeparatorSize, Value);
}
}
public struct DisabledScope : IDisposable
{
public this(bool disabled = true)
{
ImGui.BeginDisabled(disabled);
}
public void Dispose()
{
ImGui.EndDisabled();
}
}
}
}