mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 20:31:29 +02:00
Because sometimes I just don't think things through
This commit is contained in:
parent
c0fc0a226b
commit
14efe912a6
1 changed files with 2 additions and 2 deletions
|
@ -51,16 +51,16 @@ void InfoView::show(const QString& path, bool firstOrChangedOnly) {
|
||||||
}
|
}
|
||||||
if (firstOrChangedOnly) {
|
if (firstOrChangedOnly) {
|
||||||
const QString lastVersion = infoVersion.get();
|
const QString lastVersion = infoVersion.get();
|
||||||
|
const QString version = fetchVersion(url);
|
||||||
// If we have version information stored
|
// If we have version information stored
|
||||||
if (lastVersion != QString::null) {
|
if (lastVersion != QString::null) {
|
||||||
// Check to see the document version. If it's valid and matches
|
// Check to see the document version. If it's valid and matches
|
||||||
// the stored version, we're done, so exit
|
// the stored version, we're done, so exit
|
||||||
const QString version = fetchVersion(url);
|
|
||||||
if (version == QString::null || version == lastVersion) {
|
if (version == QString::null || version == lastVersion) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
infoVersion.set(version);
|
|
||||||
}
|
}
|
||||||
|
infoVersion.set(version);
|
||||||
}
|
}
|
||||||
auto offscreenUi = DependencyManager::get<OffscreenUi>();
|
auto offscreenUi = DependencyManager::get<OffscreenUi>();
|
||||||
QString infoViewName(NAME + "_" + path);
|
QString infoViewName(NAME + "_" + path);
|
||||||
|
|
Loading…
Reference in a new issue