153: [Fix] Lock thumbnail size change during init (#173)
* lock tumbnailsize change during init * do not save settings when size notification is suppressed
This commit is contained in:
@@ -49,6 +49,7 @@ namespace EveOPreview.Presenters
|
|||||||
|
|
||||||
private void Activate()
|
private void Activate()
|
||||||
{
|
{
|
||||||
|
this._suppressSizeNotifications = true;
|
||||||
this.LoadApplicationSettings();
|
this.LoadApplicationSettings();
|
||||||
this.View.SetDocumentationUrl(MainFormPresenter.FORUM_URL);
|
this.View.SetDocumentationUrl(MainFormPresenter.FORUM_URL);
|
||||||
this.View.SetVersionInfo(this.GetApplicationVersion());
|
this.View.SetVersionInfo(this.GetApplicationVersion());
|
||||||
@@ -58,6 +59,7 @@ namespace EveOPreview.Presenters
|
|||||||
}
|
}
|
||||||
|
|
||||||
this._mediator.Send(new StartService());
|
this._mediator.Send(new StartService());
|
||||||
|
this._suppressSizeNotifications = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void Minimize()
|
private void Minimize()
|
||||||
@@ -87,10 +89,9 @@ namespace EveOPreview.Presenters
|
|||||||
|
|
||||||
private async void UpdateThumbnailsSize()
|
private async void UpdateThumbnailsSize()
|
||||||
{
|
{
|
||||||
this.SaveApplicationSettings();
|
|
||||||
|
|
||||||
if (!this._suppressSizeNotifications)
|
if (!this._suppressSizeNotifications)
|
||||||
{
|
{
|
||||||
|
this.SaveApplicationSettings();
|
||||||
await this._mediator.Publish(new ThumbnailConfiguredSizeUpdated());
|
await this._mediator.Publish(new ThumbnailConfiguredSizeUpdated());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user