Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArjen Hiemstra <ahiemstra@heimr.nl>2016-10-05 15:57:59 +0300
committerArjen Hiemstra <ahiemstra@heimr.nl>2016-10-05 15:59:03 +0300
commitcd2cbcbd66a00697aca0f580d2b11d7ea6b61f71 (patch)
tree0ec18b6d2c682ede7d42e825ef73b5d34b999be3 /plugins
parent2b117c0450c7a30cf30dc948b41de0eee3dac379 (diff)
Only show changelog if we have a global container stack
If we have no global stack we can assume this is a "first run" situation. Contributes to CURA-2519
Diffstat (limited to 'plugins')
-rw-r--r--plugins/ChangeLogPlugin/ChangeLog.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/plugins/ChangeLogPlugin/ChangeLog.py b/plugins/ChangeLogPlugin/ChangeLog.py
index b30cba4a8e..6fc3fd148c 100644
--- a/plugins/ChangeLogPlugin/ChangeLog.py
+++ b/plugins/ChangeLogPlugin/ChangeLog.py
@@ -33,7 +33,6 @@ class ChangeLog(Extension, QObject,):
Application.getInstance().engineCreatedSignal.connect(self._onEngineCreated)
Preferences.getInstance().addPreference("general/latest_version_changelog_shown", "2.0.0") #First version of CURA with uranium
self.addMenuItem(catalog.i18nc("@item:inmenu", "Show Changelog"), self.showChangelog)
- #self.showChangelog()
def getChangeLogs(self):
if not self._change_logs:
@@ -87,6 +86,13 @@ class ChangeLog(Extension, QObject,):
else:
latest_version_shown = Version(Preferences.getInstance().getValue("general/latest_version_changelog_shown"))
+ Preferences.getInstance().setValue("general/latest_version_changelog_shown", Application.getInstance().getVersion())
+
+ # Do not show the changelog when there is no global container stack
+ # This implies we are running Cura for the first time.
+ if not Application.getInstance().getGlobalContainerStack():
+ return
+
if self._version > latest_version_shown:
self.showChangelog()
@@ -95,7 +101,6 @@ class ChangeLog(Extension, QObject,):
self.createChangelogWindow()
self._changelog_window.show()
- Preferences.getInstance().setValue("general/latest_version_changelog_shown", Application.getInstance().getVersion())
def hideChangelog(self):
if self._changelog_window: