This commit is contained in:
Manuel Kamper 2024-08-18 17:37:11 +02:00
parent a24264093d
commit 81bfbb9a2a

View File

@ -49,11 +49,9 @@ namespace Mk0.Software.ImageSorter
private FormWindowState lastState = FormWindowState.Minimized;
private string defaultWindowName;
private bool blockZoom = false;
private float scaling;
public Main()
{
scaling = (float)DeviceDpi / 96;
blockZoom = true;
InitializeComponent();
defaultWindowName = Text;
@ -756,12 +754,9 @@ namespace Mk0.Software.ImageSorter
{
imageIndex = 0;
}
//blockZoom = true;
pictureBoxImage.LoadAsync(CropImageBorders(images.ElementAt(imageIndex)));
string resolutionTitle = "";
Text = defaultWindowName + " - " + Path.GetFileName(pictureBoxImage.ImageLocation) + resolutionTitle;
//Zoom();
//Zoom();
}
else
{
@ -1297,7 +1292,6 @@ namespace Mk0.Software.ImageSorter
/// <param name="e"></param>
private void PictureBox_LoadCompleted(object sender, AsyncCompletedEventArgs e)
{
//if (blockZoom) { blockZoom = false; } else { Zoom(); }
Zoom();
}