mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2025-12-12 06:20: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"];
|
pub const PRIVILEGE_LIST: [&str; 2] = ["sudo", "doas"];
|
||||||
|
|
||||||
|
#[derive(PartialEq)]
|
||||||
pub enum Mode {
|
pub enum Mode {
|
||||||
Suggestion,
|
Suggestion,
|
||||||
Cnf,
|
Cnf,
|
||||||
|
|
@ -153,7 +154,9 @@ impl Data {
|
||||||
};
|
};
|
||||||
|
|
||||||
init.split();
|
init.split();
|
||||||
|
if init.mode != Mode::Cnf {
|
||||||
init.update_error(None);
|
init.update_error(None);
|
||||||
|
}
|
||||||
|
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue