feat: supports silent start

This commit is contained in:
GyDi
2022-03-26 18:56:16 +08:00
parent ea8565d0ca
commit 7b7e6555c1
4 changed files with 32 additions and 3 deletions

View File

@@ -31,6 +31,9 @@ pub struct VergeConfig {
/// can the app auto startup
pub enable_auto_launch: Option<bool>,
/// not show the window on launch
pub enable_silent_start: Option<bool>,
/// set system proxy
pub enable_system_proxy: Option<bool>,
@@ -197,6 +200,9 @@ impl Verge {
if patch.traffic_graph.is_some() {
self.config.traffic_graph = patch.traffic_graph;
}
if patch.enable_silent_start.is_some() {
self.config.enable_silent_start = patch.enable_silent_start;
}
// should update system startup
if patch.enable_auto_launch.is_some() {