Skip to content

Commit

Permalink
🚨 Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
JulesFouchy committed Feb 5, 2025
1 parent c961134 commit 96f5812
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
15 changes: 2 additions & 13 deletions src/Project/ProjectManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@ ProjectManager::ProjectManager()
_projects.emplace_back(path, *maybe_uuid);
}
}
catch (std::exception const& e)
catch (std::exception const&)
{
// TODO(Launcher) error
// return fmt::format("{}", e.what());
}
std::sort(_projects.begin(), _projects.end(), [](Project const& a, Project const& b) {
Expand Down Expand Up @@ -115,16 +116,4 @@ void ProjectManager::imgui(std::function<void(Project const&)> const& launch_pro
_projects.erase(project_to_remove);
}

void ProjectManager::launch(std::filesystem::path const& project_path)
{
// auto const* release = release_manager.get(project.coollab_version());
// if (!release)
// {
// boxer::show(
// fmt::format("Please connect to the Internet so that we can install Coollab {}.\n This version is required to launch project \"\"", project.coollab_version().name(), project.name()),
// "You are offline"
// );
// return;
// }
// release.launch(project.file_path());
}

Check failure on line 119 in src/Project/ProjectManager.cpp

View workflow job for this annotation

GitHub Actions / Linux Clang Debug

extraneous closing brace ('}')

Check failure on line 119 in src/Project/ProjectManager.cpp

View workflow job for this annotation

GitHub Actions / Linux GCC Release

expected declaration before ‘}’ token

Check failure on line 119 in src/Project/ProjectManager.cpp

View workflow job for this annotation

GitHub Actions / Linux Clang Release

extraneous closing brace ('}')

Check failure on line 119 in src/Project/ProjectManager.cpp

View workflow job for this annotation

GitHub Actions / Linux GCC Debug

expected declaration before ‘}’ token
1 change: 0 additions & 1 deletion src/Project/ProjectManager.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ class ProjectManager {
ProjectManager();

void imgui(std::function<void(Project const&)> const& launch_project);
void launch(std::filesystem::path const& project_path);

auto has_some_projects() const -> bool { return !_projects.empty(); }

Expand Down

0 comments on commit 96f5812

Please sign in to comment.