set conf 2, merge upstream update
This commit is contained in:
@@ -4,6 +4,8 @@
|
||||
#include "precompiled.h"
|
||||
#include "camount.h"
|
||||
|
||||
using json = nlohmann::json;
|
||||
|
||||
struct Config {
|
||||
QString server;
|
||||
};
|
||||
@@ -119,4 +121,10 @@ private:
|
||||
double ZECPrice = 0.0;
|
||||
};
|
||||
|
||||
|
||||
inline bool isJsonSuccess(const json& res) {
|
||||
return res.find("result") != res.end() &&
|
||||
QString::fromStdString(res["result"].get<json::string_t>()) == "success";
|
||||
}
|
||||
|
||||
#endif // SETTINGS_H
|
||||
|
||||
Reference in New Issue
Block a user