Add default_pane config option for garbar integration
- SHA
22b5e03cf46cd38d319519d04b09036c07c3261c- Parents
-
dfa3936 - Tree
a0e0cdd
22b5e03
22b5e03cf46cd38d319519d04b09036c07c3261cdfa3936
a0e0cdd| Status | File | + | - |
|---|---|---|---|
| M |
gartop/src/config.rs
|
4 | 0 |
gartop/src/config.rsmodified@@ -40,6 +40,9 @@ pub struct GuiConfig { | ||
| 40 | 40 | pub font_family: String, |
| 41 | 41 | /// Font size. |
| 42 | 42 | pub font_size: f64, |
| 43 | + /// Default pane to open (cpu, memory, network, disk). | |
| 44 | + #[serde(skip_serializing_if = "Option::is_none")] | |
| 45 | + pub default_pane: Option<String>, | |
| 43 | 46 | } |
| 44 | 47 | |
| 45 | 48 | impl Default for Config { |
@@ -70,6 +73,7 @@ impl Default for GuiConfig { | ||
| 70 | 73 | show_legend: true, |
| 71 | 74 | font_family: "sans-serif".to_string(), |
| 72 | 75 | font_size: 12.0, |
| 76 | + default_pane: None, | |
| 73 | 77 | } |
| 74 | 78 | } |
| 75 | 79 | } |