write max_size into config
This commit is contained in:
parent
410a2dc7ce
commit
1a5e270696
|
@ -1,6 +1,6 @@
|
|||
cmake_minimum_required (VERSION 3.7)
|
||||
project (mastorss
|
||||
VERSION 0.5.3
|
||||
VERSION 0.5.4
|
||||
LANGUAGES CXX
|
||||
)
|
||||
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user