remove erroneous conditional block

This commit is contained in:
Matthew Berry 2022-10-04 22:35:07 -07:00
parent 5383a1b57b
commit 5e9720f9b0

View file

@ -210,7 +210,7 @@ class SDLOpenGLImGuiFrontend < Frontend
open_keybindings = false
if show_menu_bar?
if ImGui.main_menu_bar do
ImGui.main_menu_bar do
ImGui.menu "File" do
open_rom_selection = ImGui.menu_item "Open ROM"
open_bios_selection = ImGui.menu_item "Select BIOS" unless stubbed?
@ -261,7 +261,6 @@ class SDLOpenGLImGuiFrontend < Frontend
overlay_height += ImGui.get_window_size.y
end
end
end
@file_explorer.render("ROM", open_rom_selection, ROM_EXTENSIONS) do |path|
load_new_rom(path.to_s)