fix(ci): derive default for Windows close behavior
This commit is contained in:
1 parent
93609810de
commit
6000b3159b
1 file changed
+2
-7
@@ -505,20 +505,15 @@ enum WindowsCloseAction {
|
||||
MinimizeToTray,
|
||||
}
|
||||
|
||||
#[derive(Clone, Copy, Debug, PartialEq, Eq, Serialize, Deserialize)]
|
||||
#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, Serialize, Deserialize)]
|
||||
#[serde(rename_all = "kebab-case")]
|
||||
enum WindowsCloseBehavior {
|
||||
#[default]
|
||||
Ask,
|
||||
Exit,
|
||||
MinimizeToTray,
|
||||
}
|
||||
|
||||
impl Default for WindowsCloseBehavior {
|
||||
fn default() -> Self {
|
||||
Self::Ask
|
||||
}
|
||||
}
|
||||
|
||||
impl WindowsCloseBehavior {
|
||||
fn as_str(self) -> &'static str {
|
||||
match self {
|
||||
|
||||
Reference in new issue
Block a user