From 08004a892b5a426bf3c559ff365c4c7bf7074ba5 Mon Sep 17 00:00:00 2001 From: Observer KRypt0n_ Date: Mon, 27 Feb 2023 20:43:35 +0200 Subject: [PATCH] feat: added translators credits to about window --- src/ui/about.rs | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/ui/about.rs b/src/ui/about.rs index cf5fd34..66acfde 100644 --- a/src/ui/about.rs +++ b/src/ui/about.rs @@ -49,16 +49,21 @@ impl SimpleComponent for AboutDialog { "Nikita Podvirnyy https://github.com/krypt0nn" ], - add_credit_section: (Some("Logo"), &[ - "@nightany https://pinterest.com/pin/356206651788051017" - ]), - add_credit_section: (Some("An Anime Team"), &[ "@Marie https://github.com/Mar0xy", "@lane https://github.com/laurinneff", "@jiro-too https://github.com/jiro-too" ]), + set_artists: &[ + "@nightany https://pinterest.com/pin/356206651788051017" + ], + + set_translator_credits: &[ + "Русский, English — Nikita Podvirnyy https://github.com/krypt0nn", + "Deutsch — @Marie https://github.com/Mar0xy" + ].join("\n"), + set_debug_info: &[ format!("Anime Game core: {CORE_VERSION}"), format!("curl: {}", CURL_INFO.version()), @@ -101,8 +106,6 @@ impl SimpleComponent for AboutDialog { } fn update(&mut self, msg: Self::Input, _sender: ComponentSender) { - tracing::debug!("Called about dialog event: {:?}", msg); - match msg { AboutDialogMsg::Show => { self.visible = true;