1
0

Renter settings

This commit is contained in:
Scott E. Graves
2017-03-30 14:44:57 -05:00
parent 5bc42b1fd4
commit a933bb960a
2 changed files with 19 additions and 20 deletions

View File

@@ -200,6 +200,11 @@ public:
});
auto ret = _siaApi.GetRenter()->SetAllowance(allowance);
CefV8ValueList args;
args.push_back(CefV8Value::CreateBool(ApiSuccess(ret)));
args.push_back(CefV8Value::CreateString(ret.GetReason().str()));
cb->ExecuteFunctionWithContext(context, nullptr, args);
return true;
}
// Function does not exist.
return false;