fix: warning about null translator_credits

This commit is contained in:
Evangelos Paterakis 2022-12-03 01:22:35 +02:00
parent c73927b08d
commit 09839dd5e9
No known key found for this signature in database
GPG Key ID: FE5185F095BFC8C9
1 changed files with 3 additions and 2 deletions

View File

@ -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 ();
}