Skip to content

Commit

Permalink
v1.5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
user413 committed Feb 28, 2024
1 parent 43de817 commit 146e94d
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 5 deletions.
2 changes: 2 additions & 0 deletions BackupHelper.sln
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@ Global
{67E7840B-0306-44EA-BBD6-641E388C3C9D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{67E7840B-0306-44EA-BBD6-641E388C3C9D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{67E7840B-0306-44EA-BBD6-641E388C3C9D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{67E7840B-0306-44EA-BBD6-641E388C3C9D}.Release|Any CPU.Build.0 = Release|Any CPU
{5645CE62-EFDE-429B-8492-9E4D55F343F9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{5645CE62-EFDE-429B-8492-9E4D55F343F9}.Debug|Any CPU.Build.0 = Debug|Any CPU
{5645CE62-EFDE-429B-8492-9E4D55F343F9}.Release|Any CPU.ActiveCfg = Release|Any CPU
{5645CE62-EFDE-429B-8492-9E4D55F343F9}.Release|Any CPU.Build.0 = Release|Any CPU
{0BF5D9B5-07B9-4AE9-847D-2A2D6A9CABD3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0BF5D9B5-07B9-4AE9-847D-2A2D6A9CABD3}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0BF5D9B5-07B9-4AE9-847D-2A2D6A9CABD3}.Release|Any CPU.ActiveCfg = Release|Any CPU
Expand Down
6 changes: 5 additions & 1 deletion BackupHelper/BackupHelper.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<Copyright>Copyright © Nain 2023</Copyright>
<FileVersion></FileVersion>
<ApplicationIcon>Resources\backup_helper_icon.ico</ApplicationIcon>
<Version>1.5.2</Version>
<Version>1.5.3</Version>
<Authors>Nain</Authors>
<Title>BackupHelper</Title>
<Description>Small .NET 7 app to facilitate backup of files and directories with advanced settings and binary comparison. These settings are saved into profiles.</Description>
Expand All @@ -22,6 +22,10 @@
<DebugType>none</DebugType>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<DebugType>embedded</DebugType>
</PropertyGroup>

<ItemGroup>
<Content Include="Resources\backup_helper_icon.ico" />
</ItemGroup>
Expand Down
8 changes: 6 additions & 2 deletions BackupHelper/Forms/FormProfileMenu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ public FormProfileMenu()
InitializeComponent();
listViewProfile.Groups.Add("Ungrouped", "Ungrouped");
contextMenuStripProfile.Opening += ContextMenuStripProfile_Opening;
labelVersion.Text = $"Version {System.Windows.Forms.Application.ProductVersion} ©{System.Windows.Forms.Application.CompanyName} 2023";

int strToRemove = Application.ProductVersion.IndexOf('+');
string version = strToRemove < 0 ? Application.ProductVersion : Application.ProductVersion[..strToRemove];

labelVersion.Text = $"Version {version} ©{Application.CompanyName} 2024";
KeyPreview = true;
ClickTimer.Elapsed += ClickTimer_Elapsed;
ClickTimer.AutoReset = false;
Expand Down Expand Up @@ -577,7 +581,7 @@ private void ToolStripMenuItemGenerateShortcut_Click(object sender, EventArgs e)

if (saveFileDialogShortcut.ShowDialog() == DialogResult.OK)
{
string content = $"\"{Assembly.GetExecutingAssembly().Location}\" \"{string.Join(";", selectedProfiles.Select(p => p.Name))}\"{Environment.NewLine}pause";
string content = $"\"{Program.WorkingDirectory}\\{Application.ProductName}.exe\" \"{string.Join(";", selectedProfiles.Select(p => p.Name))}\"{Environment.NewLine}pause";
File.WriteAllText(saveFileDialogShortcut.FileName, content);
MessageBox.Show($"File saved as \"{saveFileDialogShortcut.FileName}\"");
}
Expand Down
5 changes: 3 additions & 2 deletions BackupHelper/Program/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ static class Program
[DllImport("Kernel32.dll")]
static extern bool AttachConsole(int processId);

public static string DBPath = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + "\\backup_helper.db";
public static FormProfileMenu ProfileMenu;
internal static string WorkingDirectory = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
internal static string DBPath = WorkingDirectory + "\\backup_helper.db";
internal static FormProfileMenu ProfileMenu;

//public static FileControl FC = new();
//static bool ShowDialogs = true; //--Whether to show dialogs when running paremeter mode
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 1.5.3

Fixed/altered:
- Profile shortcuts - incorrect assembly name - fix

## 1.5.2

Fixed/altered:
Expand Down

0 comments on commit 146e94d

Please sign in to comment.