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:
a-kenji 2021-07-09 15:01:05 +02:00
parent cf8d5a7a4d
commit 8363705939

View File

@ -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,
}