From 09839dd5e9a8cef1584bfda59d0d51739e2516ae Mon Sep 17 00:00:00 2001 From: Evangelos Paterakis Date: Sat, 3 Dec 2022 01:22:35 +0200 Subject: [PATCH] fix: warning about null translator_credits --- src/Application.vala | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Application.vala b/src/Application.vala index 4198514..d9ec4c0 100644 --- a/src/Application.vala +++ b/src/Application.vala @@ -201,12 +201,13 @@ namespace Tooth { copyright = Build.COPYRIGHT, debug_info = Build.SYSTEM_INFO, developers = developers, - artists = artists + artists = artists, + translator_credits = Build.TRANSLATOR != " " ? Build.TRANSLATOR : "" }; // For some obscure reason, const arrays produce duplicates in the credits. // Static functions seem to avoid this peculiar behavior. - dialog.translator_credits = Build.TRANSLATOR != " " ? Build.TRANSLATOR : null; + // dialog.translator_credits = Build.TRANSLATOR != " " ? Build.TRANSLATOR : null; dialog.present (); }