mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-05-07 11:23:33 +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,
|
||||
TrayAndMultiWindow,
|
||||
Force,
|
||||
BorderOverflow,
|
||||
}
|
||||
|
||||
impl ApplicationOptions {
|
||||
@@ -36,6 +37,9 @@ impl ApplicationOptions {
|
||||
ApplicationOptions::Force => {
|
||||
format!("komorebic.exe manage-rule {kind} \"{id}\"")
|
||||
}
|
||||
ApplicationOptions::BorderOverflow => {
|
||||
unreachable!("deprecated");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -599,6 +599,7 @@ impl StaticConfig {
|
||||
&mut regex_identifiers,
|
||||
)?;
|
||||
}
|
||||
ApplicationOptions::BorderOverflow => {} // deprecated
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user