mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
fix: crash in imgui dialogs
This commit is contained in:
parent
8f86f82779
commit
954200b5ae
2 changed files with 13 additions and 5 deletions
|
|
@ -327,12 +327,15 @@ namespace Dalamud.Interface.ImGuiFileDialog
|
||||||
Text = "Documents",
|
Text = "Documents",
|
||||||
});
|
});
|
||||||
|
|
||||||
this.quickAccess.Add(new SideBarItem
|
if (!string.IsNullOrEmpty(personal))
|
||||||
{
|
{
|
||||||
Icon = (char)FontAwesomeIcon.Download,
|
this.quickAccess.Add(new SideBarItem
|
||||||
Location = Path.Combine(personal, "Downloads"),
|
{
|
||||||
Text = "Downloads",
|
Icon = (char)FontAwesomeIcon.Download,
|
||||||
});
|
Location = Path.Combine(personal, "Downloads"),
|
||||||
|
Text = "Downloads",
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
this.quickAccess.Add(new SideBarItem
|
this.quickAccess.Add(new SideBarItem
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -335,6 +335,11 @@ namespace Dalamud.Interface.ImGuiFileDialog
|
||||||
|
|
||||||
foreach (var quick in this.quickAccess)
|
foreach (var quick in this.quickAccess)
|
||||||
{
|
{
|
||||||
|
if (string.IsNullOrEmpty(quick.Location))
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
ImGui.PushFont(UiBuilder.IconFont);
|
ImGui.PushFont(UiBuilder.IconFont);
|
||||||
if (ImGui.Selectable($"{quick.Icon}##{quick.Text}", quick.Text == this.selectedSideBar))
|
if (ImGui.Selectable($"{quick.Icon}##{quick.Text}", quick.Text == this.selectedSideBar))
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue