From b64781554d0d1fc4c4ef78746db6a3657e38fb44 Mon Sep 17 00:00:00 2001 From: John Fernandez Date: Sat, 22 Feb 2025 23:29:35 -0500 Subject: [PATCH 1/2] Warn Users If Library Folder is Missing --- Knossos.NET/Classes/Knossos.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Knossos.NET/Classes/Knossos.cs b/Knossos.NET/Classes/Knossos.cs index 62aa3169..860ad9d3 100644 --- a/Knossos.NET/Classes/Knossos.cs +++ b/Knossos.NET/Classes/Knossos.cs @@ -1600,6 +1600,16 @@ private static async Task FolderSearchRecursive(string path, bool isQuickLaunch, { /* Likely file/folder permission issues */ Log.Add(Log.LogSeverity.Error, "Knossos.ModSearchRecursive", ex); + + if (folderLevel == 0 ) + { + if (MainWindow.instance != null) + { + Dispatcher.UIThread.Invoke(() => { + MessageBox.Show(MainWindow.instance!, "Knossos either cannot find or does not have permission to read a previously selected library folder.\nEither slect a new library folder in knossos's settings, or check if the folder is now protected.", "Knossos.NET Library Folder Error" , MessageBox.MessageBoxButtons.OK); + }); + } + } } } From 88d3251ae2f9ce191268ba2e8f804ffabd8192d6 Mon Sep 17 00:00:00 2001 From: John Fernandez Date: Fri, 21 Mar 2025 10:05:29 -0400 Subject: [PATCH 2/2] Fix Typos --- Knossos.NET/Classes/Knossos.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Knossos.NET/Classes/Knossos.cs b/Knossos.NET/Classes/Knossos.cs index 860ad9d3..038071a8 100644 --- a/Knossos.NET/Classes/Knossos.cs +++ b/Knossos.NET/Classes/Knossos.cs @@ -1606,7 +1606,7 @@ private static async Task FolderSearchRecursive(string path, bool isQuickLaunch, if (MainWindow.instance != null) { Dispatcher.UIThread.Invoke(() => { - MessageBox.Show(MainWindow.instance!, "Knossos either cannot find or does not have permission to read a previously selected library folder.\nEither slect a new library folder in knossos's settings, or check if the folder is now protected.", "Knossos.NET Library Folder Error" , MessageBox.MessageBoxButtons.OK); + MessageBox.Show(MainWindow.instance!, "KnossosNET either cannot find or does not have permission to read a previously selected library folder.\nEither select a new library folder in KnossosNET's settings, or check if the folder is now protected.", "Knossos.NET Library Folder Error" , MessageBox.MessageBoxButtons.OK); }); } }