mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Log error when fail to fetch type
This commit is contained in:
parent
bad7db69dc
commit
fe3babd4fc
1 changed files with 3 additions and 0 deletions
|
|
@ -15,6 +15,8 @@ namespace Flow.Launcher.Plugin.Explorer.Views;
|
|||
[INotifyPropertyChanged]
|
||||
public partial class QuickAccessLinkSettings
|
||||
{
|
||||
private static readonly string ClassName = nameof(QuickAccessLinkSettings);
|
||||
|
||||
private string _selectedPath;
|
||||
public string SelectedPath
|
||||
{
|
||||
|
|
@ -209,6 +211,7 @@ public partial class QuickAccessLinkSettings
|
|||
else
|
||||
{
|
||||
// This should not happen, but just in case, we assume it's a folder
|
||||
Main.Context.API.LogError(ClassName, $"The path '{path}' does not exist or is invalid. Defaulting to Folder type.");
|
||||
return ResultType.Folder;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue