Skip to content

Commit

Permalink
Updated to v1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
hellzerg committed Feb 7, 2022
1 parent 72a0942 commit 4746597
Show file tree
Hide file tree
Showing 8 changed files with 228 additions and 107 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

All notable changes to this project will be documented in this file.

## [1.7] - 2022-02-07
- New: Right-click menu in apps list
- New: Locate file
- Minor bug fixes

## [1.6] - 2021-11-27
- New: Drap n' Drop support for quickly adding apps

Expand Down
10 changes: 5 additions & 5 deletions Mint/Forms/GroupsForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

233 changes: 154 additions & 79 deletions Mint/Forms/MainForm.Designer.cs

Large diffs are not rendered by default.

66 changes: 52 additions & 14 deletions Mint/Forms/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public MainForm()

Options.ApplyTheme(this);
launcherMenu.Renderer = new MoonMenuRenderer();
helperMenu.Renderer = new MoonMenuRenderer();

LoadAppsStructure();
LoadAppsList();
Expand Down Expand Up @@ -91,12 +92,6 @@ private void SaveAppsStructure()
{
File.WriteAllText(Options.AppsStructureFile, string.Empty);

foreach (App s in _AppsStructure.Apps)
{
Console.WriteLine(s.AppTitle);
}
Console.WriteLine("--------------------------");

using (FileStream fs = System.IO.File.Open(Options.AppsStructureFile, FileMode.OpenOrCreate))
using (StreamWriter sw = new StreamWriter(fs))
using (JsonWriter jw = new JsonTextWriter(sw))
Expand Down Expand Up @@ -560,14 +555,6 @@ private void btnDelete_Click(object sender, EventArgs e)
}
}

private void btnClear_Click(object sender, EventArgs e)
{
if (listApps.Items.Count > 0)
{
DeleteAllAppItems();
}
}

private void pictureBox1_Click(object sender, EventArgs e)
{
AboutForm f = new AboutForm();
Expand All @@ -592,6 +579,11 @@ private void btnEdit_Click(object sender, EventArgs e)
}

private void btnSort_Click(object sender, EventArgs e)
{
SortByAZ();
}

private void SortByAZ()
{
_AppsStructure.Apps = _AppsStructure.Apps.OrderBy(x => x.AppTitle).ToList();
//if (inversed) _AppsStructure.Apps.Reverse();
Expand Down Expand Up @@ -634,5 +626,51 @@ private void MainForm_DragDrop(object sender, DragEventArgs e)
}
catch { }
}

private void listApps_MouseDown(object sender, MouseEventArgs e)
{
if (e.Button == MouseButtons.Right)
{
if (listApps.IndexFromPoint(e.Location) != ListBox.NoMatches)
{
listApps.SelectedIndex = listApps.IndexFromPoint(e.Location);
}
}
}

private void sortByAZToolStripMenuItem_Click(object sender, EventArgs e)
{
SortByAZ();
}

private void deleteToolStripMenuItem_Click(object sender, EventArgs e)
{
btnDelete.PerformClick();
}

private void editToolStripMenuItem_Click(object sender, EventArgs e)
{
btnEdit.PerformClick();
}

private void deleteAllToolStripMenuItem_Click(object sender, EventArgs e)
{
if (listApps.Items.Count > 0)
{
DeleteAllAppItems();
}
}

private void locateFileToolStripMenuItem_Click(object sender, EventArgs e)
{
if (listApps.SelectedIndex > -1)
{
App file = _AppsStructure.Apps.Find(x => x.AppTitle == listApps.SelectedItem.ToString());
if (file != null)
{
if (File.Exists(file.AppLink)) Process.Start("explorer.exe", "/select, " + file.AppLink);
}
}
}
}
}
3 changes: 3 additions & 0 deletions Mint/Forms/MainForm.resx
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,9 @@
SZIkSZIkVfHXX/8BMghKNYufOxQAAAAASUVORK5CYII=
</value>
</data>
<metadata name="helperMenu.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>436, 17</value>
</metadata>
<metadata name="launcherIcon.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>315, 17</value>
</metadata>
Expand Down
8 changes: 4 additions & 4 deletions Mint/Forms/ModifyForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
A minimal app launcher residing in your taskbar

<p align="center">
<a href="https://github.com/hellzerg/mint/releases/download/1.6/Mint-1.6.exe" target="_blank">
<a href="https://github.com/hellzerg/mint/releases/download/1.7/Mint-1.7.exe" target="_blank">
<img src="download-button.png">
</a>
</p>
Expand All @@ -34,6 +34,6 @@ Compatible with Windows 7, 8.1, 10, 11

## Details: ##

Latest version: 1.6

Released: November 27, 2021
Latest version: 1.7
Released: February 7, 2022
SHA256: DE37BC4BE73891938E4CA52295B37BF2B27BF4EC644DF04F25C730FEAE039775
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.6
1.7

0 comments on commit 4746597

Please sign in to comment.