Try to recreate overlay if OSDIndex is 0, or not-0

This commit is contained in:
Kamil Trzciński 2022-11-15 21:10:27 +01:00
parent 4de31ed48c
commit 1eb5067260
2 changed files with 22 additions and 12 deletions

View file

@ -168,7 +168,9 @@ namespace PerformanceOverlay
try
{
osdClose();
// recreate OSD if not index 0
if (osd != null && osd.OSDIndex() != 0)
osdClose();
if (osd == null)
osd = new OSD("PerformanceOverlay");