Renter settings
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user