mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-04-18 14:59:46 +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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user