Closed Mart-Bogdan closed 5 months ago
it does get added to the registry, but most the properties are not saved, so it gets filtered out as invalid
I assume that registry subkey called BrowserList should be created.
But it is empty. And 3 browsers shown aren't there as well. I assume autodetected browsers aren't cached(saved) in reg?
My bad. I was looking on HKLM not HKCU
I know what's the bug is:
It's getting name of calling method instead of name of argument. https://github.com/mortenn/BrowserPicker/blob/2518f238f97581dfb9459f27debbacfe84e8ed45/src/BrowserPicker.Windows/AppSettings.cs#L80-L86
Wow you are so fast. thank you :-)
I just happened to be at my computer and planning on looking at other bugs, you're welcome :)
/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null.</summary>
/// <param name="argument">The reference type argument to validate as non-null.</param>
/// <param name="paramName">The name of the parameter with which <paramref name="argument"/> corresponds.</param>
public static void ThrowIfNull([NotNull] object? argument, [CallerArgumentExpression(nameof(argument))] string? paramName = null)
i think attribute CallerArgumentExpression is what you wanted to have
But it's still not perfect.
I guess specifying name by hands is mos't relliable
I just had to specify manually, the method being used wasn't intended to be used like I was.
Version: v2.0.6
After I have added new browser and clicked Done it doesn't show on next launch when I run app from Start menu, and also when I use links with this app. 1.
2.
3.
![image](https://github.com/mortenn/BrowserPicker/assets/775038/d2ee0d0b-a94a-4a7f-bfa1-b1e7f27e4705)
Nevermind that on this screenshot there is
fooo
as app name. I've tried with real one. It still didn't work.