From cfc5d43fe6c867f10d7b0192b57cee40c3dff833 Mon Sep 17 00:00:00 2001 From: Aaron Date: Sat, 11 Feb 2023 02:02:10 -0600 Subject: [PATCH] Bug fix for populating dir lists when no dest selected; updated version info --- Form1.cs | 7 +++++-- Properties/AssemblyInfo.cs | 6 +++--- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/Form1.cs b/Form1.cs index 935077c..b4e646e 100644 --- a/Form1.cs +++ b/Form1.cs @@ -138,8 +138,11 @@ namespace photo_sorter private void populate_directory_lists() { - //string[] pdir = Directory.GetDirectories(global.dest); - //string[] sdir = Directory.GetDirectories(global.dest + "\\" + cbox_sort_primary.Text); + //Exit if no destination directory selected + if (global.dest.Length < 1) + { + return; + } lbox_primary_sortlist.Items.Clear(); foreach (var d in Directory.GetDirectories(global.dest)) diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs index 62374a1..b5e36d3 100644 --- a/Properties/AssemblyInfo.cs +++ b/Properties/AssemblyInfo.cs @@ -11,7 +11,7 @@ using System.Runtime.InteropServices; [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("Skyfall Tech")] [assembly: AssemblyProduct("Photo Sorter")] -[assembly: AssemblyCopyright("Copyright © 2022")] +[assembly: AssemblyCopyright("Copyright © 2023")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] @@ -33,6 +33,6 @@ using System.Runtime.InteropServices; // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.1.0")] -[assembly: AssemblyFileVersion("1.0.1.0")] +[assembly: AssemblyVersion("1.0.2.0")] +[assembly: AssemblyFileVersion("1.0.2.0")] [assembly: NeutralResourcesLanguage("en")]