* - appid : application id liked "dashboard"
*
* #### Return
- * None
+ * false : not recover app
+ * true : recover app
*
*/
-void HS_AppRecover::registerRecoveredApp(const std::string &appid)
+bool HS_AppRecover::registerRecoveredApp(const std::string &appid)
{
+ bool ret = false;
if(m_recovering_set.empty()) {
- return;
+ return ret;
}
auto it = m_recovering_set.find(appid);
&& ip->second.visibility) {
HS_ClientManager::instance()->pushEvent("showWindow", nullptr, appid);
}
+ ret = true;
}
+ return ret;
}
/**