Skip to content

Commit e650c74

Browse files
committed
shorten hashes/buildnumber in app title
1 parent 8482c80 commit e650c74

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/kotlin/Main.kt

+3-3
Original file line numberDiff line numberDiff line change
@@ -2357,11 +2357,11 @@ private fun MainAppStart()
23572357
var win_title_addon = "Unknown Version"
23582358
try
23592359
{
2360-
win_title_addon = BuildConfig.APP_VERSION + " (Build: " + BuildConfig.GIT_COMMIT_HASH.take(7) +
2360+
win_title_addon = BuildConfig.APP_VERSION + " (Build: " + BuildConfig.GIT_COMMIT_HASH.take(4) +
23612361
"-" +
2362-
MainActivity.getNativeLibTOXGITHASH() +
2362+
(MainActivity.getNativeLibTOXGITHASH()?.take(3) ?: "???") +
23632363
"-" +
2364-
MainActivity.getNativeLibGITHASH() +
2364+
(MainActivity.getNativeLibGITHASH()?.take(3) ?: "???") +
23652365
")"
23662366
} catch (_: java.lang.Exception)
23672367
{

0 commit comments

Comments
 (0)