[feat] support auto-start on boot

This commit is contained in:
dijunkun
2025-11-18 13:50:15 +08:00
parent 18f4973d0a
commit 1a64c1afef
11 changed files with 2190 additions and 1721 deletions

View File

@@ -40,6 +40,7 @@ class ConfigCenter {
int SetCertFilePath(const std::string& cert_file_path);
int SetSelfHosted(bool enable_self_hosted);
int SetMinimizeToTray(bool enable_minimize_to_tray);
int SetAutostart(bool enable_autostart);
// read config
@@ -60,6 +61,7 @@ class ConfigCenter {
std::string GetDefaultCertFilePath() const;
bool IsSelfHosted() const;
bool IsMinimizeToTray() const;
bool IsEnableAutostart() const;
int Load();
int Save();
@@ -86,6 +88,7 @@ class ConfigCenter {
std::string cert_file_path_default_ = "";
bool enable_self_hosted_ = false;
bool enable_minimize_to_tray_ = false;
bool enable_autostart_ = false;
};
} // namespace crossdesk
#endif