mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2025-12-11 22:10:09 +01:00
fix: don't get error in CNF mode
This commit is contained in:
parent
50ac3cc7e9
commit
14f10d618c
1 changed files with 4 additions and 1 deletions
|
|
@ -9,6 +9,7 @@ use std::time::Duration;
|
|||
|
||||
pub const PRIVILEGE_LIST: [&str; 2] = ["sudo", "doas"];
|
||||
|
||||
#[derive(PartialEq)]
|
||||
pub enum Mode {
|
||||
Suggestion,
|
||||
Cnf,
|
||||
|
|
@ -153,7 +154,9 @@ impl Data {
|
|||
};
|
||||
|
||||
init.split();
|
||||
init.update_error(None);
|
||||
if init.mode != Mode::Cnf {
|
||||
init.update_error(None);
|
||||
}
|
||||
|
||||
#[cfg(debug_assertions)]
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue