Skip to content

Commit 2c3d12b

Browse files
committed
ROM select shows dash in property window if information is not available
1 parent d227fc8 commit 2c3d12b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

gui/sdlimgui/win_rom_select.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,8 @@ func (win *winSelectROM) draw() {
441441
imgui.TableNextColumn()
442442
if selectedFilePreview != nil {
443443
imgui.Text(selectedFilePreview.VCS.Mem.Cart.ID())
444+
} else {
445+
imgui.Text("-")
444446
}
445447

446448
imgui.TableNextRow()
@@ -459,6 +461,8 @@ func (win *winSelectROM) draw() {
459461
}
460462
imgui.EndCombo()
461463
}
464+
} else {
465+
imgui.Text("-")
462466
}
463467
imgui.PopStyleVar()
464468
imgui.PopItemFlag()
@@ -490,6 +494,8 @@ func (win *winSelectROM) draw() {
490494
}
491495
imgui.EndCombo()
492496
}
497+
} else {
498+
imgui.Text("-")
493499
}
494500
imgui.PopStyleVar()
495501
imgui.PopItemFlag()

0 commit comments

Comments
 (0)