mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-01-19 06:53:26 +08:00
Misc
This commit is contained in:
parent
2858dce664
commit
bb3003dc3b
@ -87,11 +87,11 @@ namespace Wox.Infrastructure.Logger
|
||||
|
||||
public static void Fatal(System.Exception e)
|
||||
{
|
||||
var type = CallerType();
|
||||
var logger = LogManager.GetLogger(type);
|
||||
#if DEBUG
|
||||
throw e;
|
||||
#else
|
||||
var type = CallerType();
|
||||
var logger = LogManager.GetLogger(type);
|
||||
logger.Fatal(ExceptionFormatter.FormatExcpetion(e));
|
||||
#endif
|
||||
}
|
||||
|
@ -1,6 +1,5 @@
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Threading.Tasks;
|
||||
using System.Timers;
|
||||
using System.Windows;
|
||||
using Wox.Core;
|
||||
@ -50,7 +49,6 @@ namespace Wox
|
||||
|
||||
PluginManager.LoadPlugins(_settings.PluginSettings);
|
||||
var vm = new MainViewModel(_settings, storage);
|
||||
var pluginsSettings = _settings.PluginSettings;
|
||||
var window = new MainWindow(_settings, vm);
|
||||
API = new PublicAPIInstance(_settings, vm);
|
||||
PluginManager.InitializePlugins(API);
|
||||
|
Loading…
Reference in New Issue
Block a user