From ef1ad27dcbc90dc9c34aba008067d33bd0c9a97e Mon Sep 17 00:00:00 2001 From: eidheim Date: Wed, 11 May 2016 10:30:53 +0200 Subject: [PATCH] Info messages: added compile/debug messages --- src/window.cc | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/window.cc b/src/window.cc index ac704c1..ff52611 100644 --- a/src/window.cc +++ b/src/window.cc @@ -600,8 +600,10 @@ void Window::set_menu_actions() { EntryBox::get().show(); }); menu.add_action("compile_and_run", [this]() { - if(Project::compiling || Project::debugging) + if(Project::compiling || Project::debugging) { + Info::get().print("Compile or debug in progress"); return; + } Project::current_language=Project::get_language(); @@ -611,8 +613,10 @@ void Window::set_menu_actions() { Project::current_language->compile_and_run(); }); menu.add_action("compile", [this]() { - if(Project::compiling || Project::debugging) + if(Project::compiling || Project::debugging) { + Info::get().print("Compile or debug in progress"); return; + } Project::current_language=Project::get_language(); @@ -683,8 +687,10 @@ void Window::set_menu_actions() { EntryBox::get().show(); }); menu.add_action("debug_start_continue", [this](){ - if(Project::compiling) + if(Project::compiling) { + Info::get().print("Compile in progress"); return; + } else if(Project::debugging) { Project::current_language->debug_continue(); return;