mirror of
https://github.com/Ale32bit/Capy64.git
synced 2025-12-14 18:15:44 +00:00
Update Machine.cs
This commit is contained in:
parent
1d484f17ad
commit
87622dc925
1 changed files with 5 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue