mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 18:12:10 +00:00
NEW: request get version when online version is diff
Change-Id: If096fc6b050da80d4f961660a42a88deb4fe9f7e Signed-off-by: Stone Li <stone.li@bambulab.com>
This commit is contained in:
@@ -2204,6 +2204,15 @@ int MachineObject::parse_json(std::string payload)
|
||||
online_rfid = false;
|
||||
}
|
||||
}
|
||||
if (jj["online"].contains("version")) {
|
||||
online_version = jj["online"]["version"].get<int>();
|
||||
}
|
||||
if (last_online_version != online_version) {
|
||||
last_online_version = online_version;
|
||||
GUI::wxGetApp().CallAfter([this] {
|
||||
this->command_get_version();
|
||||
});
|
||||
}
|
||||
}
|
||||
} catch (...) {
|
||||
;
|
||||
|
||||
Reference in New Issue
Block a user