diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2020-01-27 18:43:21 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2020-01-27 18:43:21 +0200 |
commit | 51574b7396bc9bb917a1d442c3b3f7ff1cd31c2c (patch) | |
tree | 1632b836d19ea37eb841235a222118c3d022d732 /src/mainwindow | |
parent | pluginloader: generate keys by meson (diff) | |
download | smolbote-51574b7396bc9bb917a1d442c3b3f7ff1cd31c2c.tar.xz |
Refactor Browser::addPlugin to ::loadPlugins
Diffstat (limited to 'src/mainwindow')
-rw-r--r-- | src/mainwindow/menubar.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mainwindow/menubar.cpp b/src/mainwindow/menubar.cpp index eecb61a..27a8561 100644 --- a/src/mainwindow/menubar.cpp +++ b/src/mainwindow/menubar.cpp @@ -137,7 +137,7 @@ MenuBar::MenuBar(MainWindow *parent) smolbote->addSeparator(); smolbote->addAction(tr("Load Plugin"), browser, [browser]() { const QString path = QFileDialog::getOpenFileName(nullptr, tr("Select Plugin"), QDir::homePath(), tr("Plugins (*.so)")); - browser->addPlugin(path); + browser->loadPlugins(QStringList(path)); }); pluginInsertLocation = smolbote->addSeparator(); |