Skip to content

Commit 66c75e5

Browse files
Copilotxusheng6
andcommitted
Rename "Toggle Breakpoint" to "Toggle Enabled" in breakpoints widget
Avoid naming conflict with the existing F2 "Toggle Breakpoint" action that adds/removes breakpoints. The breakpoints widget action (Ctrl+Shift+B) now called "Toggle Enabled" to clearly indicate it toggles the enabled state of existing breakpoints. Co-authored-by: xusheng6 <[email protected]>
1 parent 51a0800 commit 66c75e5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ui/breakpointswidget.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -292,11 +292,11 @@ DebugBreakpointsWidget::DebugBreakpointsWidget(ViewFrame* view, BinaryViewRef da
292292
m_actionHandler.bindAction(
293293
addBreakpointActionName, UIAction([&]() { add(); }));
294294

295-
QString toggleBreakpointActionName = QString::fromStdString("Toggle Breakpoint");
296-
UIAction::registerAction(toggleBreakpointActionName, QKeySequence("Ctrl+Shift+B"));
297-
m_menu->addAction(toggleBreakpointActionName, "Options", MENU_ORDER_NORMAL);
295+
QString toggleEnabledActionName = QString::fromStdString("Toggle Enabled");
296+
UIAction::registerAction(toggleEnabledActionName, QKeySequence("Ctrl+Shift+B"));
297+
m_menu->addAction(toggleEnabledActionName, "Options", MENU_ORDER_NORMAL);
298298
m_actionHandler.bindAction(
299-
toggleBreakpointActionName, UIAction([&]() { toggleSelected(); }, [&]() { return selectionNotEmpty(); }));
299+
toggleEnabledActionName, UIAction([&]() { toggleSelected(); }, [&]() { return selectionNotEmpty(); }));
300300

301301
QString enableAllActionName = QString::fromStdString("Enable All Breakpoints");
302302
UIAction::registerAction(enableAllActionName);

0 commit comments

Comments
 (0)