TheJoeFin / Text-Grab

Use OCR in Windows quickly and easily with Text Grab. With optional background process and notifications.
https://www.microsoft.com/en-us/p/text-grab/9mznkqj7sl0b?cid=TextGrabGitHub
MIT License
3.28k stars 221 forks source link

Settings doesn't open #355

Closed andersberglund closed 1 year ago

andersberglund commented 1 year ago

Latest source code, compiled ok.

System.Windows.Markup.XamlParseException: 'Provide value on 'System.Windows.Markup.StaticResourceHolder' threw an exception.'

Inner exception Exception: Cannot find resource named 'SystemAccentColorPrimary'. Resource names are case sensitive.

System.Windows.StaticResourceExtension.ProvideValueInternal(System.IServiceProvider, bool)
System.Windows.StaticResourceExtension.ProvideValue(System.IServiceProvider)
MS.Internal.Xaml.Runtime.ClrObjectRuntime.CallProvideValue(System.Windows.Markup.MarkupExtension, System.IServiceProvider)

Exception thrown at: // No Window Found, open a new one T newWindow = new T(); newWindow.Show(); return newWindow;

TheJoeFin commented 1 year ago

@andersberglund what version of Visual Studio are you running? and what version of Windows are you running?

andersberglund commented 1 year ago

VS Version 17.7.5

Windows 11 Pro Windows 11 Insider Preview 10.0.22635.2419 23H2 2022-07-21 22635.2486 Windows Feature Experience Pack 1000.22678.1000.0

Every thing else seems to work, this is when I click settings.

andersberglund commented 1 year ago

This looks like it's my bad. I copied the new source over the old and that probably clashed with something and caused the problem. I copied the source to a new folder and it now works as supposed.

Sorry if I gave you some unnecessary work. 🙄

TheJoeFin commented 1 year ago

I am always happy to see issues resolve themselves! I did not dig into this yet, so no unnecessary work was done.