Fixed rich presence not showing on file without metadata
This commit is contained in:
parent
17894eecaf
commit
7901e24bf9
1 changed files with 5 additions and 0 deletions
|
@ -120,6 +120,11 @@ impl DiscordClient {
|
|||
if let Some(album) = &metadata.album {
|
||||
state += &format!(" on {album}");
|
||||
}
|
||||
|
||||
if state.is_empty() {
|
||||
state = String::from("File");
|
||||
}
|
||||
|
||||
utils::truncate_string_fmt(&mut state, MAX_STR_LEN);
|
||||
state
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue