Riza crazy bug fix
This commit is contained in:
@@ -124,7 +124,7 @@ public class ProfileFileSystemSelector : FileSystemSelector<Profile, ProfileStat
|
|||||||
var flag = selected ? ImGuiTreeNodeFlags.Selected | LeafFlags : LeafFlags;
|
var flag = selected ? ImGuiTreeNodeFlags.Selected | LeafFlags : LeafFlags;
|
||||||
var name = IncognitoMode ? leaf.Value.Incognito : leaf.Value.Name.Text;
|
var name = IncognitoMode ? leaf.Value.Incognito : leaf.Value.Name.Text;
|
||||||
using var color = ImRaii.PushColor(ImGuiCol.Text, state.Color.Value());
|
using var color = ImRaii.PushColor(ImGuiCol.Text, state.Color.Value());
|
||||||
using var _ = ImRaii.TreeNode(name, flag);
|
using var _ = ImUtf8.TreeNode(name, flag);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void DrawPopups()
|
protected override void DrawPopups()
|
||||||
|
|||||||
@@ -152,7 +152,7 @@ public class TemplateFileSystemSelector : FileSystemSelector<Template, TemplateS
|
|||||||
var flag = selected ? ImGuiTreeNodeFlags.Selected | LeafFlags : LeafFlags;
|
var flag = selected ? ImGuiTreeNodeFlags.Selected | LeafFlags : LeafFlags;
|
||||||
var name = IncognitoMode ? leaf.Value.Incognito : leaf.Value.Name.Text;
|
var name = IncognitoMode ? leaf.Value.Incognito : leaf.Value.Name.Text;
|
||||||
using var color = ImRaii.PushColor(ImGuiCol.Text, state.Color.Value());
|
using var color = ImRaii.PushColor(ImGuiCol.Text, state.Color.Value());
|
||||||
using var _ = ImRaii.TreeNode(name, flag);
|
using var _ = ImUtf8.TreeNode(name, flag);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void Select(FileSystem<Template>.Leaf? leaf, bool clear, in TemplateState storage = default)
|
protected override void Select(FileSystem<Template>.Leaf? leaf, bool clear, in TemplateState storage = default)
|
||||||
|
|||||||
Reference in New Issue
Block a user