Skip to content

Commit 0c9f816

Browse files
committed
Make OSD toasts at least OSDMessageDuration instead of exactly that
1 parent 5eb2cd8 commit 0c9f816

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BizHawk.Client.Common/DisplayManager/OSDManager.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ private string MakeFrameCounter()
8686
public void AddMessage(string message, int? duration = null)
8787
=> _messages.Add(new() {
8888
Message = message,
89-
ExpireAt = DateTime.Now + TimeSpan.FromSeconds(duration ?? _config.OSDMessageDuration),
89+
ExpireAt = DateTime.Now + TimeSpan.FromSeconds(Math.Max(_config.OSDMessageDuration, duration ?? 0)),
9090
});
9191

9292
public void ClearRamWatches()

0 commit comments

Comments
 (0)