﻿using System;
using System.Windows;

namespace CupCake.Client
{
    public static class Dispatch
    {
        public static void Invoke(Action callback)
        {
            Application.Current.Dispatcher.BeginInvoke(callback);
        }
    }
}
﻿using System;
using System.Windows;

namespace CupCake.Client
{
    public static class Dispatch
    {
        public static void Invoke(Action callback)
        {
            Application.Current.Dispatcher.Invoke(callback);
        }
    }
}
Fix newConnection window is sometimes not displayed
Fix newConnection window is sometimes not displayed
