Skip to content

Commit

Permalink
Make OSD toasts at least OSDMessageDuration instead of exactly that
Browse files Browse the repository at this point in the history
  • Loading branch information
YoshiRulz committed Sep 14, 2024
1 parent 5eb2cd8 commit 0c9f816
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BizHawk.Client.Common/DisplayManager/OSDManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ private string MakeFrameCounter()
public void AddMessage(string message, int? duration = null)
=> _messages.Add(new() {
Message = message,
ExpireAt = DateTime.Now + TimeSpan.FromSeconds(duration ?? _config.OSDMessageDuration),
ExpireAt = DateTime.Now + TimeSpan.FromSeconds(Math.Max(_config.OSDMessageDuration, duration ?? 0)),
});

public void ClearRamWatches()
Expand Down

0 comments on commit 0c9f816

Please sign in to comment.