mirror of
https://github.com/TakeV-Lambda/Tooth.git
synced 2024-11-05 15:27:22 +00:00
fix: warning about null translator_credits
This commit is contained in:
parent
c73927b08d
commit
09839dd5e9
1 changed files with 3 additions and 2 deletions
|
@ -201,12 +201,13 @@ namespace Tooth {
|
||||||
copyright = Build.COPYRIGHT,
|
copyright = Build.COPYRIGHT,
|
||||||
debug_info = Build.SYSTEM_INFO,
|
debug_info = Build.SYSTEM_INFO,
|
||||||
developers = developers,
|
developers = developers,
|
||||||
artists = artists
|
artists = artists,
|
||||||
|
translator_credits = Build.TRANSLATOR != " " ? Build.TRANSLATOR : ""
|
||||||
};
|
};
|
||||||
|
|
||||||
// For some obscure reason, const arrays produce duplicates in the credits.
|
// For some obscure reason, const arrays produce duplicates in the credits.
|
||||||
// Static functions seem to avoid this peculiar behavior.
|
// 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 ();
|
dialog.present ();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue