Minor updates

This commit is contained in:
Andy McFadden 2024-03-02 11:17:52 -08:00
parent 1c79cddb47
commit c637d6549c
4 changed files with 5 additions and 4 deletions

View File

@ -256,7 +256,7 @@ namespace SourceGen {
// Load the settings from the file. If this fails we have no way to tell the user,
// so just keep going.
LoadAppSettings();
SetAppWindowLocation();
SetAppWindowLocation(); // <-- this causes WindowLoaded to fire
}
/// <summary>
@ -1529,6 +1529,7 @@ namespace SourceGen {
public void ShowAppSettings(Window owner, EditAppSettings.Tab initialTab,
AsmGen.AssemblerInfo.Id initialAsmId) {
// TODO: this can be done in a less-awkward way by subscribing to an event
EditAppSettings dlg = new EditAppSettings(owner, mMainWin, this,
initialTab, initialAsmId);
dlg.ShowDialog();

View File

@ -165,7 +165,7 @@ namespace SourceGen.Tools.Omf {
}
first = false;
Debug.Assert(seg.FileLength > 0);
Debug.Assert(seg != null && seg.FileLength > 0);
SegmentList.Add(seg);
offset += seg.FileLength;

View File

@ -22,6 +22,7 @@ using System.Reflection;
using System.Runtime.CompilerServices;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using Microsoft.Win32;
using Asm65;
@ -30,7 +31,6 @@ using CommonUtil;
using AssemblerInfo = SourceGen.AsmGen.AssemblerInfo;
using AssemblerConfig = SourceGen.AsmGen.AssemblerConfig;
using ExpressionMode = Asm65.Formatter.FormatConfig.ExpressionMode;
using System.Windows.Input;
namespace SourceGen.WpfGui {
/// <summary>

View File

@ -183,7 +183,7 @@ CopyData lda #&lt;addrs ;get pointer into
</div>
</div> <!-- grid-container -->
</div> <!-- main -->
<div id="prevnext">
<a href="using-sourcegen.html" class="btn-next">Next &raquo;</a>