History

switch to bool per CR feedback

humbletim committed 8 years ago

Commit e8f0df41 parent 3ebf3222 files · +3 −3Browse files

Showing the changes to libraries/networking/src/BaseAssetScriptingInterface.cpp (1 of 2 files). Show all

Unified · Split

libraries/networking/src/BaseAssetScriptingInterface.cpp+2−2
@@ -42,7 +42,7 @@ bool BaseAssetScriptingInterface::initializeCache() { · 41 unmodified lines
4242 if (!assetClient()) {
4343 return false; // not yet possible to initialize the cache
4444 }
45− if (!_cacheDirectory.isEmpty()) {
45+ if (_cacheReady) {
4646 return true; // cache is ready
4747 }
4848
@@ -51,7 +51,7 @@ bool BaseAssetScriptingInterface::initializeCache() { · 2 unmodified lines
5151
5252 Promise deferred = makePromise("BaseAssetScriptingInterface--queryCacheStatus");
5353 deferred->then([this](QVariantMap result) {
54− _cacheDirectory = result.value("cacheDirectory").toString();
54+ _cacheReady = !result.value("cacheDirectory").toString().isEmpty();
5555 });
5656 deferred->fail([](QString error) {
5757 qDebug() << "BaseAssetScriptingInterface::queryCacheStatus ERROR" << QThread::currentThread() << error;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t