aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2020-11-20 16:25:20 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2020-11-20 20:52:47 +0200
commit4633d4648a048c16744117ac6d48098e47f6f214 (patch)
tree2e974c656ab8f26924e367a53d176d69f443e46d /src/main.cpp
parentDrop args.hxx dependency (diff)
downloadsmolbote-4633d4648a048c16744117ac6d48098e47f6f214.tar.xz
Fix meson warnings
Update about dialog
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp12
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);