Browse Source

Added comment to Filesystem::find_executable, and slight changed message on created C/C++ project

pipelines/280567345
eidheim 5 years ago
parent
commit
d94024f38d
  1. 1
      src/filesystem.hpp
  2. 4
      src/window.cpp

1
src/filesystem.hpp

@ -35,6 +35,7 @@ public:
static const std::vector<boost::filesystem::path> &get_executable_search_paths(); static const std::vector<boost::filesystem::path> &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); static boost::filesystem::path find_executable(const std::string &executable_name);
/// Get uri from path /// Get uri from path

4
src/window.cpp

@ -371,7 +371,7 @@ void Window::set_menu_actions() {
Directories::get().open(project_path); Directories::get().open(project_path);
Notebook::get().open(c_main_path); Notebook::get().open(c_main_path);
Directories::get().update(); 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 else
Terminal::get().print("\e[31mError\e[m: Could not create project " + project_path.string() + "\n", true); 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); Directories::get().open(project_path);
Notebook::get().open(cpp_main_path); Notebook::get().open(cpp_main_path);
Directories::get().update(); 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 else
Terminal::get().print("\e[31mError\e[m: Could not create project " + project_path.string() + "\n", true); Terminal::get().print("\e[31mError\e[m: Could not create project " + project_path.string() + "\n", true);

Loading…
Cancel
Save