diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2020-11-20 16:25:20 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2020-11-20 20:52:47 +0200 |
commit | 4633d4648a048c16744117ac6d48098e47f6f214 (patch) | |
tree | 2e974c656ab8f26924e367a53d176d69f443e46d /src/main.cpp | |
parent | Drop args.hxx dependency (diff) | |
download | smolbote-4633d4648a048c16744117ac6d48098e47f6f214.tar.xz |
Fix meson warnings
Update about dialog
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/main.cpp b/src/main.cpp index 88fa657..135d0ee 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -49,16 +49,12 @@ int main(int argc, char **argv) const auto f = command_line::process<Browser>(app, subcommands, "session"); { + // load plugins Configuration conf; const auto plugins_path = conf.value<QString>("plugins.path").value(); - // load plugins - /*for(const QString &path : Util::files(conf.value<QString>("plugins.path").value(), { "*.so", "*.dll" })) { - if(app.loadPlugin(path)) { - spdlog::debug("Loaded plugin [{}]", qUtf8Printable(path)); - } else { - spdlog::warn("Failed loading plugin [{}]", qUtf8Printable(path)); - } - }*/ + for(const QString &path : Util::files(plugins_path, { "*.so", "*.dll" })) { + app.loadPlugin(path) ? spdlog::debug("Loaded plugin [{}]", qUtf8Printable(path)) : spdlog::warn("Failed loading plugin [{}]", qUtf8Printable(path)); + } } return f(app); |