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