Skip to content

Commit

Permalink
Capitalize the first letter of media player if appropiate
Browse files Browse the repository at this point in the history
  • Loading branch information
LinusDierheimer committed Mar 23, 2022
1 parent f0b9800 commit 4895c68
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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
)

Expand Down
2 changes: 1 addition & 1 deletion src/detection/media.c
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
}

Expand Down

0 comments on commit 4895c68

Please sign in to comment.