Skip to content

Commit 5b6b4e4

Browse files
committed
fix: collapse nested if per clippy
1 parent 0923876 commit 5b6b4e4

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/ui/mod.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,8 @@ impl eframe::App for SettingsApp {
128128

129129
ui.horizontal(|ui| {
130130
// Apply & Save doesn't make sense on the About tab
131-
if self.current_tab != Tab::About {
132-
if ui.button("Apply & Save").clicked() {
133-
self.apply();
134-
}
131+
if self.current_tab != Tab::About && ui.button("Apply & Save").clicked() {
132+
self.apply();
135133
}
136134
if ui.button("Close").clicked() {
137135
ctx.send_viewport_cmd(egui::ViewportCommand::Close);

0 commit comments

Comments
 (0)