Skip to content

Commit 4704dcb

Browse files
committed
refactor(app): inline about window function
1 parent 30762e5 commit 4704dcb

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/application.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ impl HieroglyphicApplication {
117117
// About
118118
let action_about = gio::ActionEntry::builder("about")
119119
.activate(|app: &Self, _, _| {
120-
app.show_about_dialog();
120+
about::window().present(Some(&app.main_window()));
121121
})
122122
.build();
123123
self.add_action_entries([action_quit, action_about]);
@@ -142,9 +142,6 @@ impl HieroglyphicApplication {
142142
}
143143
}
144144

145-
fn show_about_dialog(&self) {
146-
about::window().present(Some(&self.main_window()));
147-
}
148145

149146
fn _backdoor(&self) {
150147
// Pretend here is a backdoor. Congratulations, you found it.

0 commit comments

Comments
 (0)