Skip to content

Commit

Permalink
fix gitextensions#1871. Remove Splash screen at all
Browse files Browse the repository at this point in the history
  • Loading branch information
aivanov-oneinc committed Jan 31, 2018
1 parent 57fdc57 commit f6d4fcb
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 357 deletions.
30 changes: 10 additions & 20 deletions GitExtensions/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,27 +54,22 @@ private static void Main()
}

string[] args = Environment.GetCommandLineArgs();
FormSplash.ShowSplash();
//Store here SynchronizationContext.Current, because later sometimes it can be null
//see http://stackoverflow.com/questions/11621372/synchronizationcontext-current-is-null-in-continuation-on-the-main-ui-thread
GitUIExtensions.UISynchronizationContext = SynchronizationContext.Current;
AsyncLoader.DefaultContinuationTaskScheduler = TaskScheduler.FromCurrentSynchronizationContext();
Application.DoEvents();

//This form created for obtain UI synchronization context only
using (var empFormForSyncContext = new Form())
{
//Store here SynchronizationContext.Current, because later sometimes it can be null
//see http://stackoverflow.com/questions/11621372/synchronizationcontext-current-is-null-in-continuation-on-the-main-ui-thread
GitUIExtensions.UISynchronizationContext = SynchronizationContext.Current;
AsyncLoader.DefaultContinuationTaskScheduler = TaskScheduler.FromCurrentSynchronizationContext();
}

AppSettings.LoadSettings();
if (EnvUtils.RunningOnWindows())
{
WebBrowserEmulationMode.SetBrowserFeatureControl();

//Quick HOME check:
FormSplash.SetAction("Checking home path...");
Application.DoEvents();

WebBrowserEmulationMode.SetBrowserFeatureControl();
FormFixHome.CheckHomePath();
}
//Register plugins
FormSplash.SetAction("Loading plugins...");
Application.DoEvents();

if (string.IsNullOrEmpty(AppSettings.Translation))
{
Expand All @@ -91,9 +86,6 @@ private static void Main()
|| string.IsNullOrEmpty(AppSettings.GitCommandValue)
|| !File.Exists(AppSettings.GitCommandValue)))
{
FormSplash.SetAction("Checking settings...");
Application.DoEvents();

GitUICommands uiCommands = new GitUICommands(string.Empty);
var commonLogic = new CommonLogic(uiCommands.Module);
var checkSettingsLogic = new CheckSettingsLogic(commonLogic);
Expand All @@ -115,8 +107,6 @@ private static void Main()
// TODO: remove catch-all
}

FormSplash.HideSplash();

if (EnvUtils.RunningOnWindows())
MouseWheelRedirector.Active = true;

Expand Down
129 changes: 0 additions & 129 deletions GitUI/FormSplash.Designer.cs

This file was deleted.

78 changes: 0 additions & 78 deletions GitUI/FormSplash.cs

This file was deleted.

120 changes: 0 additions & 120 deletions GitUI/FormSplash.resx

This file was deleted.

0 comments on commit f6d4fcb

Please sign in to comment.