Clear OSD + surfaces when removing a Lua script (resolves #3014)

they were already being cleared when closing the Lua Console
note the "Erase Stale/Stuck Lua Drawing Layers" button does not clear OSD,
leaving that as it is for now
This commit is contained in:
YoshiRulz 2022-12-03 00:10:32 +10:00
parent 2efae13af4
commit a9756b60a2
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
1 changed files with 2 additions and 0 deletions

View File

@ -948,6 +948,8 @@ namespace BizHawk.Client.EmuHawk
}
UpdateDialog();
DisplayManager.ClearApiHawkSurfaces();
DisplayManager.OSD.ClearGuiText();
}
}