mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-02-03 05:14:44 +01:00
Only showing filename of modules in loading screen
This commit is contained in:
parent
5a0c1ab5d0
commit
201a612c19
@ -111,7 +111,7 @@ void MainWindow::init() {
|
|||||||
}
|
}
|
||||||
if (!file.is_regular_file()) { continue; }
|
if (!file.is_regular_file()) { continue; }
|
||||||
spdlog::info("Loading {0}", path);
|
spdlog::info("Loading {0}", path);
|
||||||
LoadingScreen::show("Loading " + path);
|
LoadingScreen::show("Loading " + file.path().filename().string());
|
||||||
core::moduleManager.loadModule(path);
|
core::moduleManager.loadModule(path);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -129,7 +129,7 @@ void MainWindow::init() {
|
|||||||
for (auto const& path : modules) {
|
for (auto const& path : modules) {
|
||||||
std::string apath = std::filesystem::absolute(path).string();
|
std::string apath = std::filesystem::absolute(path).string();
|
||||||
spdlog::info("Loading {0}", apath);
|
spdlog::info("Loading {0}", apath);
|
||||||
LoadingScreen::show("Loading " + apath);
|
LoadingScreen::show("Loading " + std::filesystem::path(path).filename().string());
|
||||||
core::moduleManager.loadModule(apath);
|
core::moduleManager.loadModule(apath);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -149,7 +149,7 @@ void MainWindow::init() {
|
|||||||
if (std::filesystem::is_directory(resourcesDir + "/colormaps")) {
|
if (std::filesystem::is_directory(resourcesDir + "/colormaps")) {
|
||||||
for (const auto& file : std::filesystem::directory_iterator(resourcesDir + "/colormaps")) {
|
for (const auto& file : std::filesystem::directory_iterator(resourcesDir + "/colormaps")) {
|
||||||
std::string path = file.path().generic_string();
|
std::string path = file.path().generic_string();
|
||||||
LoadingScreen::show("Loading " + path);
|
LoadingScreen::show("Loading " + file.path().filename().string());
|
||||||
spdlog::info("Loading {0}", path);
|
spdlog::info("Loading {0}", path);
|
||||||
if (file.path().extension().generic_string() != ".json") {
|
if (file.path().extension().generic_string() != ".json") {
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user