mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 06:05:52 +08:00
Don't show the current checked version of the firmware if the version number we gather is ZERO. That means that there was a problem getting the right value.
Contributes to CURA-5980.
This commit is contained in:
parent
7019afe21f
commit
fcc6af68af
@ -93,6 +93,11 @@ class FirmwareUpdateCheckerJob(Job):
|
|||||||
|
|
||||||
current_version = self.getCurrentVersion()
|
current_version = self.getCurrentVersion()
|
||||||
|
|
||||||
|
# This case indicates that was an error checking the version.
|
||||||
|
# It happens for instance when not connected to internet.
|
||||||
|
if current_version == self.ZERO_VERSION:
|
||||||
|
return
|
||||||
|
|
||||||
# If it is the first time the version is checked, the checked_version is ""
|
# If it is the first time the version is checked, the checked_version is ""
|
||||||
setting_key_str = getSettingsKeyForMachine(machine_id)
|
setting_key_str = getSettingsKeyForMachine(machine_id)
|
||||||
checked_version = Version(Application.getInstance().getPreferences().getValue(setting_key_str))
|
checked_version = Version(Application.getInstance().getPreferences().getValue(setting_key_str))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user