mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 13:01:52 +00:00
Made not having a project loaded less crashy
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user