mirror of
https://github.com/achiez/NebulaAuth-Steam-Desktop-Authenticator-by-Achies.git
synced 2026-07-25 06:14:31 +00:00
06748d6f83
- SessionHandler refactored. Now it used as global authorization API - Added semaphore to SessionHandler - WaitLogin dialog flow moved to SessionHandler - MaClient and PortableMaClient authorization logic now separeted and works correctly - Fixed App startup error was not localized and closed immediatly - Fixed code progress bar was freezing due to low Dispatcher priority - Fixed legacy serializer typo error in AccessToken field on write operation
37 lines
856 B
C#
37 lines
856 B
C#
using NebulaAuth.Core;
|
|
using NebulaAuth.Model;
|
|
using NebulaAuth.Model.Exceptions;
|
|
using System;
|
|
using System.Windows;
|
|
using CodingSeb.Localization;
|
|
|
|
namespace NebulaAuth;
|
|
|
|
|
|
public partial class App
|
|
{
|
|
protected override void OnStartup(StartupEventArgs e)
|
|
{
|
|
base.OnStartup(e);
|
|
|
|
LocManager.Init();
|
|
LocManager.SetApplicationLocalization(Settings.Instance.Language);
|
|
try
|
|
{
|
|
Shell.Initialize();
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
var msg = ex.ToString();
|
|
if (ex is CantAlignTimeException)
|
|
{
|
|
msg = LocManager.Get("CantAlignTimeError");
|
|
}
|
|
|
|
MessageBox.Show(msg, "Error", MessageBoxButton.OK, MessageBoxImage.Stop, MessageBoxResult.OK, MessageBoxOptions.DefaultDesktopOnly);
|
|
throw;
|
|
|
|
}
|
|
}
|
|
}
|