Adjusted forced thumbnail refresh check logic
This commit is contained in:
@@ -15,7 +15,7 @@ namespace EveOPreview.Services
|
|||||||
private const int WindowPositionThresholdLow = -10_000;
|
private const int WindowPositionThresholdLow = -10_000;
|
||||||
private const int WindowPositionThresholdHigh = 31_000;
|
private const int WindowPositionThresholdHigh = 31_000;
|
||||||
private const int WindowSizeThreshold = 10;
|
private const int WindowSizeThreshold = 10;
|
||||||
private const int ForcedRefreshCycleThreshold = 1;
|
private const int ForcedRefreshCycleThreshold = 2;
|
||||||
|
|
||||||
private const string DefaultClientTitle = "EVE";
|
private const string DefaultClientTitle = "EVE";
|
||||||
#endregion
|
#endregion
|
||||||
@@ -115,15 +115,16 @@ namespace EveOPreview.Services
|
|||||||
|
|
||||||
bool hideAllThumbnails = this._configuration.HideThumbnailsOnLostFocus && !(string.IsNullOrEmpty(foregroundWindowTitle) || this.IsClientWindowActive(foregroundWindowHandle));
|
bool hideAllThumbnails = this._configuration.HideThumbnailsOnLostFocus && !(string.IsNullOrEmpty(foregroundWindowTitle) || this.IsClientWindowActive(foregroundWindowHandle));
|
||||||
|
|
||||||
|
this._refreshCycleCount++;
|
||||||
|
|
||||||
bool forceRefresh;
|
bool forceRefresh;
|
||||||
if (this._refreshCycleCount > ThumbnailManager.ForcedRefreshCycleThreshold)
|
if (this._refreshCycleCount >= ThumbnailManager.ForcedRefreshCycleThreshold)
|
||||||
{
|
{
|
||||||
this._refreshCycleCount = 0;
|
this._refreshCycleCount = 0;
|
||||||
forceRefresh = true;
|
forceRefresh = true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
this._refreshCycleCount++;
|
|
||||||
forceRefresh = false;
|
forceRefresh = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user