#49 cycle through eve clients at toon selection page

#9 Allow EveO to preview other executables
This commit is contained in:
Izakbar
2025-02-05 09:33:40 +00:00
parent 607fbcbeac
commit 7ec1aceb54
5 changed files with 60 additions and 10 deletions

View File

@@ -1,4 +1,5 @@
using System.Collections.Generic;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Windows.Forms;
@@ -60,6 +61,8 @@ namespace EveOPreview.Configuration.Implementation
this.DisableThumbnail = new Dictionary<string, bool>();
this.PriorityClients = new List<string>();
this.ExecutablesToPreview = new List<string> { "exefile" };
this.MinimizeToTray = false;
this.ThumbnailRefreshPeriod = 500;
this.ThumbnailResizeTimeoutPeriod = 500;
@@ -224,6 +227,8 @@ namespace EveOPreview.Configuration.Implementation
private Dictionary<string, bool> DisableThumbnail { get; set; }
[JsonProperty]
private List<string> PriorityClients { get; set; }
[JsonProperty]
private List<string> ExecutablesToPreview { get; set; }
public Point GetThumbnailLocation(string currentClient, string activeClient, Point defaultLocation)
{
@@ -326,6 +331,10 @@ namespace EveOPreview.Configuration.Implementation
{
return this.PriorityClients.Contains(currentClient);
}
public bool IsExecutableToPreview(string processName)
{
return this.ExecutablesToPreview.Any(s => s.Equals(processName, StringComparison.OrdinalIgnoreCase));
}
public bool IsThumbnailDisabled(string currentClient)
{