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
1 changed files with 2 additions and 0 deletions
|
|
@ -8,7 +8,9 @@ use zellij_tile::data::InputMode;
|
||||||
|
|
||||||
#[derive(Copy, Clone, Debug, PartialEq, Deserialize, Serialize)]
|
#[derive(Copy, Clone, Debug, PartialEq, Deserialize, Serialize)]
|
||||||
pub enum OnForceClose {
|
pub enum OnForceClose {
|
||||||
|
#[serde(alias = "quit")]
|
||||||
Quit,
|
Quit,
|
||||||
|
#[serde(alias = "detach")]
|
||||||
Detach,
|
Detach,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue