mirror of
https://github.com/Sani7/remote-ui.git
synced 2026-10-26 21:51:13 +01:00
client
fix the annoying errors when you develop
This commit is contained in:
@@ -22,11 +22,11 @@ MainWindow::MainWindow(QUrl ws_url, QString sim, QWidget *parent)
|
||||
(spdlog::level::level_enum)level, msg.toStdString());
|
||||
});
|
||||
|
||||
QLibrary lib;
|
||||
QDirIterator it(QCoreApplication::applicationDirPath(), QStringList() << "*.so" << "*.dll", QDir::Files,
|
||||
QDirIterator it(QCoreApplication::applicationDirPath(), QStringList() << "*libui_*.so" << "*libui_*.dll", QDir::Files,
|
||||
QDirIterator::Subdirectories);
|
||||
while (it.hasNext())
|
||||
{
|
||||
QLibrary lib;
|
||||
lib.setFileName(it.next());
|
||||
lib.load();
|
||||
auto loaded_ui = Get_UI(lib.resolve("get_ui"));
|
||||
|
||||
@@ -51,11 +51,11 @@ Simulators::Simulators(uint16_t port, QStringList can_devs, QStringList uart_dev
|
||||
}
|
||||
}
|
||||
|
||||
QLibrary lib;
|
||||
QDirIterator it(QCoreApplication::applicationDirPath(), QStringList() << "*.so", QDir::Files,
|
||||
QDirIterator it(QCoreApplication::applicationDirPath(), QStringList() << "*libsim_*.so", QDir::Files,
|
||||
QDirIterator::Subdirectories);
|
||||
while (it.hasNext())
|
||||
{
|
||||
QLibrary lib;
|
||||
lib.setFileName(it.next());
|
||||
lib.load();
|
||||
auto loaded_sim = Get_Sim(lib.resolve("get_sim"));
|
||||
|
||||
Reference in New Issue
Block a user