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:
Stone Li authored and Lane.Wei committed 2022-12-15 04:38:15 -05:00
1 parent ab5f2aa3f7
commit 250a359247
2 files changed
+11

No files matched your search

+9
View File
@@ -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 (...) {
;