mirror of
https://github.com/zellij-org/zellij.git
synced 2024-12-26 10:43:46 +03:00
Add serde-alias for on_force_close
* It doesn't deserialize from the configuration otherwise, if specified in lower-case. Alternative: use a rename.
This commit is contained in:
parent
cf8d5a7a4d
commit
8363705939
@ -8,7 +8,9 @@ use zellij_tile::data::InputMode;
|
||||
|
||||
#[derive(Copy, Clone, Debug, PartialEq, Deserialize, Serialize)]
|
||||
pub enum OnForceClose {
|
||||
#[serde(alias = "quit")]
|
||||
Quit,
|
||||
#[serde(alias = "detach")]
|
||||
Detach,
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user