mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-21 20:19:32 +08:00
CURA-5232 Renaming variable since it was on conflict with a new variable
introduced in 4cabcb3632fe7a2c987e70197767a6a4bf88349b
This commit is contained in:
parent
4c75d78f26
commit
2ebf6e8d51
@ -23,9 +23,9 @@ class ChangeLog(Extension, QObject,):
|
||||
self._changelog_context = None
|
||||
version_string = Application.getInstance().getVersion()
|
||||
if version_string is not "master":
|
||||
self._version = Version(version_string)
|
||||
self._current_app_version = Version(version_string)
|
||||
else:
|
||||
self._version = None
|
||||
self._current_app_version = None
|
||||
|
||||
self._change_logs = None
|
||||
Application.getInstance().engineCreatedSignal.connect(self._onEngineCreated)
|
||||
@ -76,7 +76,7 @@ class ChangeLog(Extension, QObject,):
|
||||
self._change_logs[open_version][open_header].append(line)
|
||||
|
||||
def _onEngineCreated(self):
|
||||
if not self._version:
|
||||
if not self._current_app_version:
|
||||
return #We're on dev branch.
|
||||
|
||||
if Preferences.getInstance().getValue("general/latest_version_changelog_shown") == "master":
|
||||
@ -91,7 +91,7 @@ class ChangeLog(Extension, QObject,):
|
||||
if not Application.getInstance().getGlobalContainerStack():
|
||||
return
|
||||
|
||||
if self._version > latest_version_shown:
|
||||
if self._current_app_version > latest_version_shown:
|
||||
self.showChangelog()
|
||||
|
||||
def showChangelog(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user