From 1a5e27069653bdbb04a51602f566fba220291667 Mon Sep 17 00:00:00 2001 From: tastytea Date: Sat, 14 Apr 2018 15:19:54 +0200 Subject: [PATCH] write max_size into config --- CMakeLists.txt | 2 +- src/config.cpp | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index aeabada..f46606f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required (VERSION 3.7) project (mastorss - VERSION 0.5.3 + VERSION 0.5.4 LANGUAGES CXX ) diff --git a/src/config.cpp b/src/config.cpp index 18b1c68..08dcdf7 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -50,6 +50,11 @@ std::uint16_t read_config(string &instance, string &access_token, string &feedur { max_size = config[profile]["max_size"].asUInt(); } + else + { + config[profile]["max_size"] = max_size; + config_changed = true; + } } else {