Skip to content

Commit

Permalink
refactor: use more appropriate name
Browse files Browse the repository at this point in the history
  • Loading branch information
SeaDve committed Feb 5, 2024
1 parent 8caa22d commit 57ad1ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/about.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use crate::{
utils,
};

pub fn present_window(parent: &impl IsA<gtk::Widget>) {
pub fn present_dialog(parent: &impl IsA<gtk::Widget>) {
let win = adw::AboutDialog::builder()
.application_icon(APP_ID)
.application_name(utils::application_name())
Expand Down
2 changes: 1 addition & 1 deletion src/application.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ impl Application {
let action_about = gio::ActionEntry::builder("about")
.activate(|obj: &Self, _, _| {
if let Some(window) = obj.active_window() {
about::present_window(&window);
about::present_dialog(&window);
} else {
tracing::warn!("Can't present about dialog without an active window");
}
Expand Down

0 comments on commit 57ad1ef

Please sign in to comment.