mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 11:07:50 +02:00
Merge pull request #4829 from jherico/info-view
Fixing info-view popup on every launch
This commit is contained in:
commit
7ad696895c
1 changed files with 2 additions and 1 deletions
|
@ -51,15 +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);
|
||||
}
|
||||
auto offscreenUi = DependencyManager::get<OffscreenUi>();
|
||||
QString infoViewName(NAME + "_" + path);
|
||||
|
|
Loading…
Reference in a new issue