Update Machine.cs

This commit is contained in:
Apache 2023-02-16 06:39:51 -06:00 committed by GitHub
parent 5045fa757c
commit 1d484f17ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -103,6 +103,8 @@ public class Machine : IPlugin
if (!L.IsNoneOrNil(1))
{
var newTitle = L.CheckString(1);
L.ArgumentCheck(!string.IsNullOrEmpty(newTitle), 1, "string must not be empty");
Capy64.Instance.Window.Title = newTitle;
}