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:
LGUG2Z
2024-04-05 15:14:29 -07:00
parent 6238d1f848
commit 6aa9be1ea0
2 changed files with 5 additions and 0 deletions

View File

@@ -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");
}
}
}