Skip to content

Commit

Permalink
🐛 Bug fixes and minor improvements
Browse files Browse the repository at this point in the history
- Selection tool: Add center grip
- Fix: App hangs if all files are broken in an opened folder
- Fix: You can drag an image from the app if no image opened
  • Loading branch information
Beelink committed Mar 28, 2021
1 parent a5cb27b commit 675d8b1
Show file tree
Hide file tree
Showing 73 changed files with 13,387 additions and 13,376 deletions.
Binary file modified .vs/quick-picture-viewer/v16/.suo
Binary file not shown.
Binary file modified inno-setup/QuickPictureViewer-Setup.exe
Binary file not shown.
2 changes: 1 addition & 1 deletion quick-picture-viewer/App.config
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</sectionGroup>
</configSections>
<System.Windows.Forms.ApplicationConfigurationSection>
<add key="DpiAwareness" value="PerMonitorV2" />
<add key="DpiAwareness" value="PerMonitorV2"/>
</System.Windows.Forms.ApplicationConfigurationSection>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
Expand Down
Binary file modified quick-picture-viewer/bin/Debug/quick-picture-viewer.exe
Binary file not shown.
Binary file modified quick-picture-viewer/bin/Debug/quick-picture-viewer.pdb
Binary file not shown.
Binary file modified quick-picture-viewer/bin/Release/quick-picture-viewer.exe
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</sectionGroup>
</configSections>
<System.Windows.Forms.ApplicationConfigurationSection>
<add key="DpiAwareness" value="PerMonitorV2" />
<add key="DpiAwareness" value="PerMonitorV2"/>
</System.Windows.Forms.ApplicationConfigurationSection>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
Expand Down
Binary file modified quick-picture-viewer/bin/Release/quick-picture-viewer.pdb
Binary file not shown.
File renamed without changes.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,75 +1,75 @@
using QuickLibrary;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Reflection;
using System.Windows.Forms;

namespace quick_picture_viewer
{
partial class AboutForm : QlibFixedForm
{
public AboutForm()
{
InitializeComponent();
SetDraggableControls(new List<Control>() { logoPictureBox, productLabel, versionLabel, copyrightLabel });

closeBtn.DarkMode = false;

string fullVer = Assembly.GetExecutingAssembly().GetName().Version.ToString();
int lastDotIndex = fullVer.LastIndexOf('.');
versionLabel.Text = String.Format("v{0}", fullVer.Substring(0, lastDotIndex));

if (IntPtr.Size == 4) versionLabel.Text += " (x32)";
else if (IntPtr.Size == 8) versionLabel.Text += " (x64)";

if (ThemeMan.isWindows10()) makeDefaultBtn.Enabled = true;
}

protected override void OnHandleCreated(EventArgs e)
{
ThemeMan.ApplyDarkTitlebar(Handle, DarkMode);
base.OnHandleCreated(e);
}

private void closeBtn_Click(object sender, EventArgs e)
{
Close();
}

private void AboutForm_Load(object sender, EventArgs e)
{
InitLanguage();
}

private void InitLanguage()
{
Text = LangMan.Get("about");
updatesBtn.Text = " " + LangMan.Get("check-for-app-updates");
descTextBox.Text = LangMan.Get("app-description");
makeDefaultBtn.Text = LangMan.Get("set-as-default-image-viewer");
infoTooltip.SetToolTip(closeBtn, NativeMan.GetMessageBoxText(NativeMan.DialogBoxCommandID.IDCLOSE) + " | Alt+F4");
}

private void makeDefaultBtn_Click(object sender, EventArgs e)
{
Process.Start("ms-settings:defaultapps");
}

private void updatesBtn_Click(object sender, EventArgs e)
{
UpdateMan.CheckForUpdates(true, TopMost, Owner.Handle);
Close();
}

private void button1_Click(object sender, EventArgs e)
{
Process.Start("https://github.com/ModuleArt/quick-picture-viewer/");
}

private void developerBtn_Click(object sender, EventArgs e)
{
Process.Start("https://moduleart.github.io");
}
}
}
using QuickLibrary;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Reflection;
using System.Windows.Forms;

namespace quick_picture_viewer
{
partial class AboutForm : QlibFixedForm
{
public AboutForm()
{
InitializeComponent();
SetDraggableControls(new List<Control>() { logoPictureBox, productLabel, versionLabel, copyrightLabel });

closeBtn.DarkMode = false;

string fullVer = Assembly.GetExecutingAssembly().GetName().Version.ToString();
int lastDotIndex = fullVer.LastIndexOf('.');
versionLabel.Text = String.Format("v{0}", fullVer.Substring(0, lastDotIndex));

if (IntPtr.Size == 4) versionLabel.Text += " (x32)";
else if (IntPtr.Size == 8) versionLabel.Text += " (x64)";

if (ThemeMan.isWindows10()) makeDefaultBtn.Enabled = true;
}

protected override void OnHandleCreated(EventArgs e)
{
ThemeMan.ApplyDarkTitlebar(Handle, DarkMode);
base.OnHandleCreated(e);
}

private void closeBtn_Click(object sender, EventArgs e)
{
Close();
}

private void AboutForm_Load(object sender, EventArgs e)
{
InitLanguage();
}

private void InitLanguage()
{
Text = LangMan.Get("about");
updatesBtn.Text = " " + LangMan.Get("check-for-app-updates");
descTextBox.Text = LangMan.Get("app-description");
makeDefaultBtn.Text = LangMan.Get("set-as-default-image-viewer");
infoTooltip.SetToolTip(closeBtn, NativeMan.GetMessageBoxText(NativeMan.DialogBoxCommandID.IDCLOSE) + " | Alt+F4");
}

private void makeDefaultBtn_Click(object sender, EventArgs e)
{
Process.Start("ms-settings:defaultapps");
}

private void updatesBtn_Click(object sender, EventArgs e)
{
UpdateMan.CheckForUpdates(true, TopMost, Owner.Handle);
Close();
}

private void button1_Click(object sender, EventArgs e)
{
Process.Start("https://github.com/ModuleArt/quick-picture-viewer/");
}

private void developerBtn_Click(object sender, EventArgs e)
{
Process.Start("https://moduleart.github.io");
}
}
}
Loading

0 comments on commit 675d8b1

Please sign in to comment.