mirror of
https://github.com/Sani7/remote-ui.git
synced 2026-10-26 21:51:13 +01:00
b library
fix unload lib on error
This commit is contained in:
@@ -19,6 +19,7 @@ MainWindow::MainWindow(QUrl ws_url, QWidget *parent)
|
||||
if (loaded_ui == nullptr)
|
||||
{
|
||||
SPDLOG_INFO("{} NOT FOUND", lib.fileName().toStdString());
|
||||
lib.unload();
|
||||
continue;
|
||||
}
|
||||
auto widget = loaded_ui(m_web_socket.get(), this);
|
||||
|
||||
@@ -43,6 +43,7 @@ Simulators::Simulators(uint16_t port, QString can_dev, QString uart_dev, QObject
|
||||
if (loaded_sim == nullptr)
|
||||
{
|
||||
SPDLOG_INFO("{} NOT FOUND", lib.fileName().toStdString());
|
||||
lib.unload();
|
||||
continue;
|
||||
}
|
||||
auto widget = loaded_sim(&m_com, this);
|
||||
|
||||
Reference in New Issue
Block a user