Capitalize the first letter of media player if appropiate

This commit is contained in:
Linus Dierheimer
2022-03-23 11:54:05 +01:00
parent f0b9800974
commit 4895c68ca9
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 3.1.0) # Threads::Threads
project(fastfetch
VERSION 1.1.1
VERSION 1.1.2
LANGUAGES C
)
+1 -1
View File
@@ -336,7 +336,7 @@ static void getMedia(FFinstance* instance, FFMediaResult* result)
//Check again for length, as we may have removed everything.
//If we don't have subdomains, it is usually more pretty to capitalize the first letter.
if(result->playerPretty.length > 0 && ffStrbufFirstIndexC(&result->playerPretty, '.') < result->playerPretty.length)
if(result->playerPretty.length > 0 && ffStrbufFirstIndexC(&result->playerPretty, '.') == result->playerPretty.length)
result->playerPretty.chars[0] = (char) toupper(result->playerPretty.chars[0]);
}