feat: enable show or hide traffic graph

This commit is contained in:
GyDi
2022-02-19 18:14:40 +08:00
parent 051b529c11
commit 5b5a299b55
8 changed files with 51 additions and 41 deletions

View File

@@ -13,6 +13,9 @@ pub struct VergeConfig {
/// maybe be able to set the alpha
pub theme_blur: Option<bool>,
/// enable traffic graph default is true
pub traffic_graph: Option<bool>,
/// can the app auto startup
pub enable_auto_launch: Option<bool>,
@@ -195,6 +198,9 @@ impl Verge {
if patch.theme_blur.is_some() {
self.config.theme_blur = patch.theme_blur;
}
if patch.traffic_graph.is_some() {
self.config.traffic_graph = patch.traffic_graph;
}
// should update system startup
if patch.enable_auto_launch.is_some() {