1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-19 00:25:07 +00:00

HackStudio: Add icons for "step in" and "step out"

This commit is contained in:
Itamar 2020-08-21 11:51:32 +03:00 committed by Andreas Kling
parent ebab512c03
commit cb432ffe8c
6 changed files with 21 additions and 20 deletions

View file

@ -631,8 +631,7 @@ int main_impl(int argc, char** argv)
current_editor_in_execution = get_editor_of_file(source_position.value().file_path);
current_editor_in_execution->editor().set_execution_position(source_position.value().line_number - 1);
debug_info_widget.update_state(*Debugger::the().session(), regs);
debug_info_widget.continue_action().set_enabled(true);
debug_info_widget.singlestep_action().set_enabled(true);
debug_info_widget.set_debug_actions_enabled(true);
reveal_action_tab(debug_info_widget);
}));
Core::EventLoop::wake();
@ -642,8 +641,7 @@ int main_impl(int argc, char** argv)
[&]() {
dbg() << "Program continued";
Core::EventLoop::main().post_event(*g_window, make<Core::DeferredInvocationEvent>([&](auto&) {
debug_info_widget.continue_action().set_enabled(false);
debug_info_widget.singlestep_action().set_enabled(false);
debug_info_widget.set_debug_actions_enabled(false);
if (current_editor_in_execution) {
current_editor_in_execution->editor().clear_execution_position();
}