aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
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);