mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-16 03:07:53 -06: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
1 changed files with 5 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue