mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-06-12 05:24:27 +02:00
fix(config): gracefully handled deprecated asc opt
This commit ensures that if an applications.yaml revision is passed which includes the now-deprecated border_overflow option, komorebi will gracefully handle it instead of crashing on an unknown enum variant error.
This commit is contained in:
@@ -18,6 +18,7 @@ pub enum ApplicationOptions {
|
|||||||
Layered,
|
Layered,
|
||||||
TrayAndMultiWindow,
|
TrayAndMultiWindow,
|
||||||
Force,
|
Force,
|
||||||
|
BorderOverflow,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl ApplicationOptions {
|
impl ApplicationOptions {
|
||||||
@@ -36,6 +37,9 @@ impl ApplicationOptions {
|
|||||||
ApplicationOptions::Force => {
|
ApplicationOptions::Force => {
|
||||||
format!("komorebic.exe manage-rule {kind} \"{id}\"")
|
format!("komorebic.exe manage-rule {kind} \"{id}\"")
|
||||||
}
|
}
|
||||||
|
ApplicationOptions::BorderOverflow => {
|
||||||
|
unreachable!("deprecated");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -599,6 +599,7 @@ impl StaticConfig {
|
|||||||
&mut regex_identifiers,
|
&mut regex_identifiers,
|
||||||
)?;
|
)?;
|
||||||
}
|
}
|
||||||
|
ApplicationOptions::BorderOverflow => {} // deprecated
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user