Reenabled Compatibility-Mode thumbnails back
This reverts commit de7edfa2c1
.
This commit is contained in:
@@ -24,6 +24,8 @@ namespace EveOPreview.Configuration.Implementation
|
||||
this.MinimizeToTray = false;
|
||||
this.ThumbnailRefreshPeriod = 500;
|
||||
|
||||
this.EnableCompatibilityMode = false;
|
||||
|
||||
this.ThumbnailOpacity = 0.5;
|
||||
|
||||
this.EnableClientLayoutTracking = false;
|
||||
@@ -54,6 +56,9 @@ namespace EveOPreview.Configuration.Implementation
|
||||
public bool MinimizeToTray { get; set; }
|
||||
public int ThumbnailRefreshPeriod { get; set; }
|
||||
|
||||
[JsonProperty("CompatibilityMode")]
|
||||
public bool EnableCompatibilityMode { get; set; }
|
||||
|
||||
[JsonProperty("ThumbnailsOpacity")]
|
||||
public double ThumbnailOpacity { get; set; }
|
||||
|
||||
@@ -145,7 +150,8 @@ namespace EveOPreview.Configuration.Implementation
|
||||
// If there is no layout too then use the default one
|
||||
if (this.EnablePerClientThumbnailLayouts && !string.IsNullOrEmpty(activeClient))
|
||||
{
|
||||
if (this.PerClientLayout.TryGetValue(activeClient, out Dictionary<string, Point> layoutSource) && layoutSource.TryGetValue(currentClient, out location))
|
||||
Dictionary<string, Point> layoutSource;
|
||||
if (this.PerClientLayout.TryGetValue(activeClient, out layoutSource) && layoutSource.TryGetValue(currentClient, out location))
|
||||
{
|
||||
return location;
|
||||
}
|
||||
@@ -181,7 +187,8 @@ namespace EveOPreview.Configuration.Implementation
|
||||
|
||||
public ClientLayout GetClientLayout(string currentClient)
|
||||
{
|
||||
this.ClientLayout.TryGetValue(currentClient, out ClientLayout layout);
|
||||
ClientLayout layout;
|
||||
this.ClientLayout.TryGetValue(currentClient, out layout);
|
||||
|
||||
return layout;
|
||||
}
|
||||
@@ -193,7 +200,8 @@ namespace EveOPreview.Configuration.Implementation
|
||||
|
||||
public Keys GetClientHotkey(string currentClient)
|
||||
{
|
||||
if (this.ClientHotkey.TryGetValue(currentClient, out string hotkey))
|
||||
string hotkey;
|
||||
if (this.ClientHotkey.TryGetValue(currentClient, out hotkey))
|
||||
{
|
||||
// Protect from incorrect values
|
||||
object rawValue = (new KeysConverter()).ConvertFromInvariantString(hotkey);
|
||||
|
Reference in New Issue
Block a user