From d94024f38dbef1304e210f4f02a1fb8baaa73729 Mon Sep 17 00:00:00 2001 From: eidheim Date: Sat, 27 Mar 2021 13:29:01 +0100 Subject: [PATCH] Added comment to Filesystem::find_executable, and slight changed message on created C/C++ project --- src/filesystem.hpp | 1 + src/window.cpp | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/filesystem.hpp b/src/filesystem.hpp index 3f14e86..3056315 100644 --- a/src/filesystem.hpp +++ b/src/filesystem.hpp @@ -35,6 +35,7 @@ public: static const std::vector &get_executable_search_paths(); + /// Returns full executable path if found, or empty path otherwise. static boost::filesystem::path find_executable(const std::string &executable_name); /// Get uri from path diff --git a/src/window.cpp b/src/window.cpp index 91cc331..51f2526 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -371,7 +371,7 @@ void Window::set_menu_actions() { Directories::get().open(project_path); Notebook::get().open(c_main_path); Directories::get().update(); - Terminal::get().print("\e[32mC project " + project_name + " created.\e[m\n"); + Terminal::get().print("C project " + project_name + " \e[32mcreated\e[m.\n"); } else Terminal::get().print("\e[31mError\e[m: Could not create project " + project_path.string() + "\n", true); @@ -421,7 +421,7 @@ void Window::set_menu_actions() { Directories::get().open(project_path); Notebook::get().open(cpp_main_path); Directories::get().update(); - Terminal::get().print("\e[32mC++ project " + project_name + " created.\e[m\n"); + Terminal::get().print("C++ project " + project_name + " \e[32mcreated\e[m.\n"); } else Terminal::get().print("\e[31mError\e[m: Could not create project " + project_path.string() + "\n", true);