From 42c705310f3cf6b6bc25cd3b692122061b934983 Mon Sep 17 00:00:00 2001 From: Dave Patrick Caberto Date: Fri, 9 Feb 2024 11:18:40 +0800 Subject: [PATCH] refactor(about): use more appropriate name --- src/about.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/about.rs b/src/about.rs index dfbc59d..8dc9194 100644 --- a/src/about.rs +++ b/src/about.rs @@ -10,7 +10,7 @@ use crate::{ }; pub fn present_dialog(parent: &impl IsA) { - 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")) @@ -27,18 +27,18 @@ pub fn present_dialog(parent: &impl IsA) { .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 {