Browse Source

Info messages: added compile/debug messages

merge-requests/365/head
eidheim 10 years ago
parent
commit
ef1ad27dcb
  1. 12
      src/window.cc

12
src/window.cc

@ -600,8 +600,10 @@ void Window::set_menu_actions() {
EntryBox::get().show(); EntryBox::get().show();
}); });
menu.add_action("compile_and_run", [this]() { 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; return;
}
Project::current_language=Project::get_language(); Project::current_language=Project::get_language();
@ -611,8 +613,10 @@ void Window::set_menu_actions() {
Project::current_language->compile_and_run(); Project::current_language->compile_and_run();
}); });
menu.add_action("compile", [this]() { menu.add_action("compile", [this]() {
if(Project::compiling || Project::debugging) if(Project::compiling || Project::debugging) {
Info::get().print("Compile or debug in progress");
return; return;
}
Project::current_language=Project::get_language(); Project::current_language=Project::get_language();
@ -683,8 +687,10 @@ void Window::set_menu_actions() {
EntryBox::get().show(); EntryBox::get().show();
}); });
menu.add_action("debug_start_continue", [this](){ menu.add_action("debug_start_continue", [this](){
if(Project::compiling) if(Project::compiling) {
Info::get().print("Compile in progress");
return; return;
}
else if(Project::debugging) { else if(Project::debugging) {
Project::current_language->debug_continue(); Project::current_language->debug_continue();
return; return;

Loading…
Cancel
Save