From dd2bcbd898a33de340c4e1e27214d41b264298c5 Mon Sep 17 00:00:00 2001 From: Yimura Date: Sun, 25 Jul 2021 21:06:49 +0200 Subject: [PATCH] feat(Globals): Added handling window --- BigBaseV2/src/core/globals.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/BigBaseV2/src/core/globals.hpp b/BigBaseV2/src/core/globals.hpp index 60a8faf0..22a2fb40 100644 --- a/BigBaseV2/src/core/globals.hpp +++ b/BigBaseV2/src/core/globals.hpp @@ -39,8 +39,9 @@ struct globals { }; struct window { - bool main = true; + bool handling = false; bool log = false; + bool main = true; bool users = true; bool player = false; @@ -74,6 +75,7 @@ struct globals { this->weapons.custom_weapon = (CustomWeapon)j["weapons"]["custom_weapon"]; + this->window.handling = j["window"]["handling"]; this->window.log = j["window"]["log"]; this->window.main = j["window"]["main"]; this->window.users = j["window"]["users"]; @@ -108,6 +110,7 @@ struct globals { }, { "window", { + { "handling", this->window.handling }, { "log", this->window.log }, { "main", this->window.main }, { "users", this->window.users } @@ -121,10 +124,7 @@ struct globals { nlohmann::json& j = this->to_json(); if (deep_compare(this->options, j, true)) - { - LOG(INFO) << "Settings changed, saving..."; this->save(); - } } bool load()