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

View File

@ -62,7 +62,7 @@ namespace Mk0.Software.ImageSorter
SetDefaultPath();
//file assoc prüfen und in einstellungen richtig setzen
if(FileAssociation.Check("Image_Sorter_JPG", Application.ExecutablePath, "JPG Bild", $@"{Application.StartupPath}\AssocIcons\jpg.ico") &&
if (FileAssociation.Check("Image_Sorter_JPG", Application.ExecutablePath, "JPG Bild", $@"{Application.StartupPath}\AssocIcons\jpg.ico") &&
FileAssociation.Check("Image_Sorter_PNG", Application.ExecutablePath, "PNG Bild", $@"{Application.StartupPath}\AssocIcons\png.ico") &&
FileAssociation.Check("Image_Sorter_GIF", Application.ExecutablePath, "GIF Bild", $@"{Application.StartupPath}\AssocIcons\gif.ico") &&
FileAssociation.Check("Image_Sorter_JPEG", Application.ExecutablePath, "JPEG Bild", $@"{Application.StartupPath}\AssocIcons\jpeg.ico") &&
@ -88,7 +88,7 @@ namespace Mk0.Software.ImageSorter
ProcessParameters(null, Args);
Args = null;
}
AutoUpdater.ShowSkipButton = false;
AutoUpdater.Start("https://www.kmpr.at/update/imagesorter.xml");
}
@ -607,7 +607,7 @@ namespace Mk0.Software.ImageSorter
}
else
{
if(Directory.Exists($@"{Application.StartupPath}\AssocIcons"))
if (Directory.Exists($@"{Application.StartupPath}\AssocIcons"))
{
Directory.Delete($@"{Application.StartupPath}\AssocIcons", true);
FileAssociation.Remove("Image_Sorter_JPG");
@ -1827,7 +1827,7 @@ namespace Mk0.Software.ImageSorter
/// <param name="e"></param>
private void ButtonInfo_Click(object sender, EventArgs e)
{
if(groupBoxInformationen.Visible)
if (groupBoxInformationen.Visible)
{
//ausblenden
groupBoxInformationen.Visible = false;
@ -1882,7 +1882,7 @@ namespace Mk0.Software.ImageSorter
/// <param name="e"></param>
private void ButtonHintergrund_Click(object sender, EventArgs e)
{
if(panelImageBackground.BackColor==Properties.Settings.Default.darkBackgroundColour)
if (panelImageBackground.BackColor == Properties.Settings.Default.darkBackgroundColour)
{
panelImageBackground.BackColor = Properties.Settings.Default.lightBackgroundColour;
pictureBoxImage.BackColor = Properties.Settings.Default.lightBackgroundColour;