mirror of
https://github.com/Sani7/remote-ui.git
synced 2026-10-27 06:01:14 +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());
|
(spdlog::level::level_enum)level, msg.toStdString());
|
||||||
});
|
});
|
||||||
|
|
||||||
QLibrary lib;
|
QDirIterator it(QCoreApplication::applicationDirPath(), QStringList() << "*libui_*.so" << "*libui_*.dll", QDir::Files,
|
||||||
QDirIterator it(QCoreApplication::applicationDirPath(), QStringList() << "*.so" << "*.dll", QDir::Files,
|
|
||||||
QDirIterator::Subdirectories);
|
QDirIterator::Subdirectories);
|
||||||
while (it.hasNext())
|
while (it.hasNext())
|
||||||
{
|
{
|
||||||
|
QLibrary lib;
|
||||||
lib.setFileName(it.next());
|
lib.setFileName(it.next());
|
||||||
lib.load();
|
lib.load();
|
||||||
auto loaded_ui = Get_UI(lib.resolve("get_ui"));
|
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() << "*libsim_*.so", QDir::Files,
|
||||||
QDirIterator it(QCoreApplication::applicationDirPath(), QStringList() << "*.so", QDir::Files,
|
|
||||||
QDirIterator::Subdirectories);
|
QDirIterator::Subdirectories);
|
||||||
while (it.hasNext())
|
while (it.hasNext())
|
||||||
{
|
{
|
||||||
|
QLibrary lib;
|
||||||
lib.setFileName(it.next());
|
lib.setFileName(it.next());
|
||||||
lib.load();
|
lib.load();
|
||||||
auto loaded_sim = Get_Sim(lib.resolve("get_sim"));
|
auto loaded_sim = Get_Sim(lib.resolve("get_sim"));
|
||||||
|
|||||||
Reference in New Issue
Block a user