Skip to content

Commit

Permalink
Fix AboutDialog crash/freeze (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonko0493 authored Apr 3, 2023
1 parent d846369 commit c2a8cc9
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/SerialLoops/MainForm.eto.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,13 @@ private void InitializeBaseMenu()

// About
Command aboutCommand = new() { MenuText = "About...", Image = ControlGenerator.GetIcon("Help", _log) };
AboutDialog aboutDialog = new() { ProgramName = "Serial Loops", Developers = new[] { "Jonko", "William" }, Copyright = "© Haroohie Translation Club, 2023", Website = new Uri("https://haroohie.club") };
aboutCommand.Executed += (sender, e) => aboutDialog.ShowDialog(this);
aboutCommand.Executed += (sender, e) => new AboutDialog()
{
ProgramName = "Serial Loops",
Developers = new[] { "Jonko", "William278" },
Copyright = "© Haroohie Translation Club, 2023",
Website = new Uri("https://haroohie.club")
}.ShowDialog(this);

// Create Menu
_recentProjects = new() { Text = "Recent Projects" };
Expand Down

0 comments on commit c2a8cc9

Please sign in to comment.