aboutsummaryrefslogtreecommitdiffstats
path: root/src/hs-config.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/hs-config.cpp')
-rw-r--r--src/hs-config.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/hs-config.cpp b/src/hs-config.cpp
index df45e42..a227d30 100644
--- a/src/hs-config.cpp
+++ b/src/hs-config.cpp
@@ -105,6 +105,11 @@ int HS_Config::parseConfig(void)
if(json_object_get_type(m_lastmode) == json_type_array ) {
struct std::vector<recover_app_info> v_lastmode = std::move(getRecoverAppInfo(m_lastmode));
if(!v_lastmode.empty()) { // got saving lastmode isn't null, instead of default lastmode
+ for(auto &it : v_lastmode) {
+ if(it.after.empty() && !m_recover_map[keys_recover_type[1]].empty()) {
+ it.after = m_recover_map[keys_recover_type[1]][0].after;
+ }
+ }
m_recover_map[keys_recover_type[1]] = std::move(v_lastmode);
}
}