Update Machine.cs

This commit is contained in:
Apache 2023-02-16 07:13:56 -06:00 committed by GitHub
parent 1d484f17ad
commit 87622dc925
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,4 @@
// This file is part of Capy64 - https://github.com/Capy64/Capy64
// This file is part of Capy64 - https://github.com/Capy64/Capy64
// Copyright 2023 Alessandro "AlexDevs" Proto
//
// Licensed under the Apache License, Version 2.0 (the "License").
@ -104,7 +104,10 @@ public class Machine : IPlugin
{
var newTitle = L.CheckString(1);
L.ArgumentCheck(!string.IsNullOrEmpty(newTitle), 1, "string must not be empty");
if (string.IsNullOrEmpty(newTitle))
{
newTitle = "Capy64 " + Capy64.Version;
}
Capy64.Instance.Window.Title = newTitle;
}