Fix for handling exceptions thrown by dispatcher which were crashing PT Run (#5199)

* fix report window error icon

* fix for launching web page to create new issue

* Made icon theme aware

* removed exception that was added by mistake

* modified the issue reporting link to match that in the settings page

* added comment
This commit is contained in:
Alekhya
2020-07-24 13:58:40 -07:00
committed by GitHub
parent c4ddb7d351
commit cc990a1181
22 changed files with 67 additions and 24 deletions

View File

@@ -71,8 +71,8 @@ namespace Wox.Infrastructure.Image
{
if (theme == Theme.Light || theme == Theme.HighContrastWhite)
{
ErrorIconPath = Constant.ErrorIcon;
DefaultIconPath = Constant.DefaultIcon;
ErrorIconPath = Constant.LightThemedErrorIcon;
DefaultIconPath = Constant.LightThemedDefaultIcon;
}
else
{

View File

@@ -34,11 +34,13 @@ namespace Wox.Infrastructure
public static readonly string DataDirectory = DetermineDataDirectory();
public static readonly string PluginsDirectory = Path.Combine(DataDirectory, Plugins);
public static readonly string PreinstalledDirectory = Path.Combine(ProgramDirectory, Plugins);
public const string Issue = "https://github.com/microsoft/PowerToys/issues/new";
public const string Issue = "https://github.com/microsoft/PowerToys/issues";
public static readonly string Version = FileVersionInfo.GetVersionInfo(Assembly.Location.NonNull()).ProductVersion;
public static readonly int ThumbnailSize = 64;
public static readonly string DefaultIcon = Path.Combine(ProgramDirectory, "Images", "app.dark.png");
public static readonly string ErrorIcon = Path.Combine(ProgramDirectory, "Images", "app_error.dark.png");
public static readonly string LightThemedDefaultIcon = Path.Combine(ProgramDirectory, "Images", "app.light.png");
public static readonly string LightThemedErrorIcon = Path.Combine(ProgramDirectory, "Images", "app_error.light.png");
}
}