[Emulator] Fixed issue with assertion failure during menu draw on Linux
This commit is contained in:
@@ -837,9 +837,13 @@ bool EmulatorWindow::Initialize() {
|
|||||||
main_menu->AddChild(std::move(hid_menu));
|
main_menu->AddChild(std::move(hid_menu));
|
||||||
|
|
||||||
// XMP menu
|
// XMP menu
|
||||||
main_menu->AddChild(MenuItem::Create(
|
auto xmp_menu = MenuItem::Create(MenuItem::Type::kPopup, "&XMP");
|
||||||
MenuItem::Type::kString, "&XMP", "",
|
{
|
||||||
std::bind(&EmulatorWindow::ToggleXMPConfigDialog, this)));
|
xmp_menu->AddChild(MenuItem::Create(
|
||||||
|
MenuItem::Type::kString, "&Show XMP Menu", "",
|
||||||
|
std::bind(&EmulatorWindow::ToggleXMPConfigDialog, this)));
|
||||||
|
}
|
||||||
|
main_menu->AddChild(std::move(xmp_menu));
|
||||||
|
|
||||||
// Help menu.
|
// Help menu.
|
||||||
auto help_menu = MenuItem::Create(MenuItem::Type::kPopup, "&Help");
|
auto help_menu = MenuItem::Create(MenuItem::Type::kPopup, "&Help");
|
||||||
|
|||||||
Reference in New Issue
Block a user