mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-03-23 04:01:21 -04:00
Debugger/ BreakpointsWidget: Add option to disable/enable all breaking without affecting individual breakpoint enabled states.
Allows you to quickly stop breaking, play the game, then re-enable breaking. useful if you have many active breakpoints, but need to run the game.
This commit is contained in:
@@ -319,6 +319,7 @@ void CodeViewWidget::Update(const Core::CPUThreadGuard* guard)
|
||||
guard ? std::make_optional(power_pc.GetPPCState().pc) : std::nullopt;
|
||||
|
||||
const bool dark_theme = Settings::Instance().IsThemeDark();
|
||||
const bool breaking_enabled = power_pc.GetBreakPoints().IsBreakingEnabled();
|
||||
|
||||
m_branches.clear();
|
||||
|
||||
@@ -400,7 +401,7 @@ void CodeViewWidget::Update(const Core::CPUThreadGuard* guard)
|
||||
if (bp != nullptr)
|
||||
{
|
||||
auto icon = Resources::GetThemeIcon("debugger_breakpoint").pixmap(QSize(rowh - 2, rowh - 2));
|
||||
if (!bp->is_enabled)
|
||||
if (!breaking_enabled || !bp->is_enabled)
|
||||
{
|
||||
QPixmap disabled_icon(icon.size());
|
||||
disabled_icon.fill(Qt::transparent);
|
||||
|
||||
Reference in New Issue
Block a user