flip boolean block (clippy::if_not_else)
This commit is contained in:
parent
34cf7bf76a
commit
ec5c2a1991
1 changed files with 6 additions and 6 deletions
12
src/main.rs
12
src/main.rs
|
|
@ -1201,10 +1201,10 @@ impl App {
|
|||
hold: profile.hold,
|
||||
env: HashMap::new(),
|
||||
};
|
||||
let tab_title_override = if !profile.tab_title.is_empty() {
|
||||
Some(profile.tab_title.clone())
|
||||
} else {
|
||||
let tab_title_override = if profile.tab_title.is_empty() {
|
||||
None
|
||||
} else {
|
||||
Some(profile.tab_title.clone())
|
||||
};
|
||||
(options, tab_title_override)
|
||||
}
|
||||
|
|
@ -1455,10 +1455,10 @@ impl Application for App {
|
|||
}
|
||||
|
||||
fn on_context_drawer(&mut self) -> Command<Message> {
|
||||
if !self.core.window.show_context {
|
||||
self.update_focus()
|
||||
} else {
|
||||
if self.core.window.show_context {
|
||||
Command::none()
|
||||
} else {
|
||||
self.update_focus()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue