From c0fc0a226b6eacc83d4a38f601a40a64b95e3ddf Mon Sep 17 00:00:00 2001 From: Brad Davis Date: Mon, 11 May 2015 13:10:36 -0700 Subject: [PATCH 1/2] Fixing info-view popup on every launch --- libraries/ui/src/InfoView.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/ui/src/InfoView.cpp b/libraries/ui/src/InfoView.cpp index 3f80c97c4c..2d292d9700 100644 --- a/libraries/ui/src/InfoView.cpp +++ b/libraries/ui/src/InfoView.cpp @@ -59,6 +59,7 @@ void InfoView::show(const QString& path, bool firstOrChangedOnly) { if (version == QString::null || version == lastVersion) { return; } + infoVersion.set(version); } } auto offscreenUi = DependencyManager::get(); From 14efe912a6cbc1b22c3c509053ce29cae1d5e2c7 Mon Sep 17 00:00:00 2001 From: Bradley Austin Davis Date: Tue, 12 May 2015 09:20:02 -0700 Subject: [PATCH 2/2] Because sometimes I just don't think things through --- libraries/ui/src/InfoView.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/ui/src/InfoView.cpp b/libraries/ui/src/InfoView.cpp index 2d292d9700..dd754f209a 100644 --- a/libraries/ui/src/InfoView.cpp +++ b/libraries/ui/src/InfoView.cpp @@ -51,16 +51,16 @@ void InfoView::show(const QString& path, bool firstOrChangedOnly) { } if (firstOrChangedOnly) { const QString lastVersion = infoVersion.get(); + const QString version = fetchVersion(url); // If we have version information stored if (lastVersion != QString::null) { // Check to see the document version. If it's valid and matches // the stored version, we're done, so exit - const QString version = fetchVersion(url); if (version == QString::null || version == lastVersion) { return; } - infoVersion.set(version); } + infoVersion.set(version); } auto offscreenUi = DependencyManager::get(); QString infoViewName(NAME + "_" + path);