mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-13 15:59:23 +01:00
Merge pull request #10174 from dreamsyntax/panic-handles-restore-messages
DolphinQt: Add "Reset Ignore Panic Handler" MenuBar Option
This commit is contained in:
commit
f5657d0a83
@ -165,6 +165,7 @@ void MenuBar::OnDebugModeToggled(bool enabled)
|
|||||||
// Options
|
// Options
|
||||||
m_boot_to_pause->setVisible(enabled);
|
m_boot_to_pause->setVisible(enabled);
|
||||||
m_automatic_start->setVisible(enabled);
|
m_automatic_start->setVisible(enabled);
|
||||||
|
m_reset_ignore_panic_handler->setVisible(enabled);
|
||||||
m_change_font->setVisible(enabled);
|
m_change_font->setVisible(enabled);
|
||||||
|
|
||||||
// View
|
// View
|
||||||
@ -543,6 +544,13 @@ void MenuBar::AddOptionsMenu()
|
|||||||
connect(m_automatic_start, &QAction::toggled, this,
|
connect(m_automatic_start, &QAction::toggled, this,
|
||||||
[](bool enable) { SConfig::GetInstance().bAutomaticStart = enable; });
|
[](bool enable) { SConfig::GetInstance().bAutomaticStart = enable; });
|
||||||
|
|
||||||
|
m_reset_ignore_panic_handler = options_menu->addAction(tr("Reset Ignore Panic Handler"));
|
||||||
|
|
||||||
|
connect(m_reset_ignore_panic_handler, &QAction::triggered, this, []() {
|
||||||
|
if (Config::Get(Config::MAIN_USE_PANIC_HANDLERS))
|
||||||
|
Common::SetEnableAlert(true);
|
||||||
|
});
|
||||||
|
|
||||||
m_change_font = options_menu->addAction(tr("&Font..."), this, &MenuBar::ChangeDebugFont);
|
m_change_font = options_menu->addAction(tr("&Font..."), this, &MenuBar::ChangeDebugFont);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -234,6 +234,7 @@ private:
|
|||||||
// Options
|
// Options
|
||||||
QAction* m_boot_to_pause;
|
QAction* m_boot_to_pause;
|
||||||
QAction* m_automatic_start;
|
QAction* m_automatic_start;
|
||||||
|
QAction* m_reset_ignore_panic_handler;
|
||||||
QAction* m_change_font;
|
QAction* m_change_font;
|
||||||
QAction* m_controllers_action;
|
QAction* m_controllers_action;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user