Skip to content

Commit

Permalink
refactor(about): use more appropriate name
Browse files Browse the repository at this point in the history
  • Loading branch information
SeaDve committed Feb 9, 2024
1 parent e46b357 commit 42c7053
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/about.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use crate::{
};

pub fn present_dialog(parent: &impl IsA<gtk::Widget>) {
let win = adw::AboutDialog::builder()
let dialog = adw::AboutDialog::builder()
.application_icon(APP_ID)
.application_name(utils::application_name())
.developer_name(gettext("Dave Patrick Caberto"))
Expand All @@ -27,18 +27,18 @@ pub fn present_dialog(parent: &impl IsA<gtk::Widget>) {
.debug_info_filename("delineate-debug-info")
.build();

win.add_link(&gettext("Donate"), "https://seadve.github.io/donate/");
win.add_link(
dialog.add_link(&gettext("Donate"), "https://seadve.github.io/donate/");
dialog.add_link(
&gettext("Donate (Buy Me a Coffee)"),
"https://www.buymeacoffee.com/seadve",
);
win.add_link(&gettext("GitHub"), "https://github.com/SeaDve/Delineate");
win.add_link(
dialog.add_link(&gettext("GitHub"), "https://github.com/SeaDve/Delineate");
dialog.add_link(
&gettext("Translate"),
"https://hosted.weblate.org/projects/seadve/delineate",
);

win.present(parent);
dialog.present(parent);
}

fn debug_info() -> String {
Expand Down

0 comments on commit 42c7053

Please sign in to comment.