Fixed app starting, when user just closes the loading screen
Closes #21
This commit is contained in:
parent
ad8a08f5da
commit
eac5fa3268
@ -13,10 +13,10 @@ public partial class LoaderStart : UserControl
|
|||||||
this.InitializeComponent();
|
this.InitializeComponent();
|
||||||
}
|
}
|
||||||
|
|
||||||
private static RegistryKey I18NCommanderKey => Registry.CurrentUser.OpenSubKey("Software", RegistryKeyPermissionCheck.ReadWriteSubTree)!.CreateSubKey("I18N Commander", RegistryKeyPermissionCheck.ReadWriteSubTree);
|
|
||||||
|
|
||||||
#region Recent Projects
|
#region Recent Projects
|
||||||
|
|
||||||
|
private static RegistryKey I18NCommanderKey => Registry.CurrentUser.OpenSubKey("Software", RegistryKeyPermissionCheck.ReadWriteSubTree)!.CreateSubKey("I18N Commander", RegistryKeyPermissionCheck.ReadWriteSubTree);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the list of recent projects without any extras e.g. it does not prune the list of projects.
|
/// Gets or sets the list of recent projects without any extras e.g. it does not prune the list of projects.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -12,6 +12,7 @@ public partial class Loader : Form
|
|||||||
private void loaderStart_LoadProject(object sender, string projectFilePath)
|
private void loaderStart_LoadProject(object sender, string projectFilePath)
|
||||||
{
|
{
|
||||||
this.DataFile = projectFilePath;
|
this.DataFile = projectFilePath;
|
||||||
|
this.DialogResult = DialogResult.OK;
|
||||||
this.Close();
|
this.Close();
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -21,6 +21,10 @@ internal static class Program
|
|||||||
var loader = new Loader();
|
var loader = new Loader();
|
||||||
Application.Run(loader);
|
Application.Run(loader);
|
||||||
|
|
||||||
|
// Check, if the user closes the loader screen:
|
||||||
|
if (loader.DialogResult != DialogResult.OK)
|
||||||
|
return;
|
||||||
|
|
||||||
//
|
//
|
||||||
// Create the DI system
|
// Create the DI system
|
||||||
//
|
//
|
||||||
|
Loading…
Reference in New Issue
Block a user