mirror of
https://github.com/SourMesen/Mesen2.git
synced 2025-04-02 10:21:44 -04:00
Fixed compilation warning
This commit is contained in:
parent
d324582c6f
commit
e12f40ae3b
4 changed files with 4 additions and 4 deletions
|
@ -48,7 +48,7 @@ namespace Mesen.Debugger.ViewModels
|
|||
[Obsolete("For designer only")]
|
||||
public ScriptWindowViewModel() : this(null) { }
|
||||
|
||||
public ScriptWindowViewModel(ScriptStartupBehavior? behavior = null)
|
||||
public ScriptWindowViewModel(ScriptStartupBehavior? behavior)
|
||||
{
|
||||
this.WhenAnyValue(x => x.ScriptName).Select(x => {
|
||||
string wndTitle = ResourceHelper.GetViewLabel(nameof(ScriptWindow), "wndTitle");
|
||||
|
|
|
@ -47,7 +47,7 @@ namespace Mesen.Debugger.Windows
|
|||
}
|
||||
|
||||
[Obsolete("For designer only")]
|
||||
public ScriptWindow() : this(new()) { }
|
||||
public ScriptWindow() : this(new(null)) { }
|
||||
|
||||
public ScriptWindow(ScriptWindowViewModel model)
|
||||
{
|
||||
|
|
|
@ -137,7 +137,7 @@ public class CommandLineHelper
|
|||
continue;
|
||||
}
|
||||
|
||||
ScriptWindowViewModel model = new();
|
||||
ScriptWindowViewModel model = new(null);
|
||||
model.LoadScript(luaScript);
|
||||
DebugWindowManager.OpenDebugWindow(() => new ScriptWindow(model));
|
||||
}
|
||||
|
|
|
@ -1037,7 +1037,7 @@ namespace Mesen.ViewModels
|
|||
ActionType = ActionType.OpenScriptWindow,
|
||||
Shortcut = () => ConfigManager.Config.Debug.Shortcuts.Get(DebuggerShortcut.OpenScriptWindow),
|
||||
IsEnabled = () => IsGameRunning,
|
||||
OnClick = () => DebugWindowManager.OpenDebugWindow(() => new ScriptWindow(new ScriptWindowViewModel()))
|
||||
OnClick = () => DebugWindowManager.OpenDebugWindow(() => new ScriptWindow(new ScriptWindowViewModel(null)))
|
||||
},
|
||||
new ContextMenuAction() {
|
||||
ActionType = ActionType.OpenWatchWindow,
|
||||
|
|
Loading…
Add table
Reference in a new issue