[GH-ISSUE #1391] [Bug] Crash after switching color theme #3643

Closed
opened 2026-03-01 19:14:26 +03:00 by kerem · 0 comments
Owner

Originally created by @stef-19 on GitHub (Jun 9, 2025).
Original GitHub issue: https://github.com/NickeManarin/ScreenToGif/issues/1391

Originally assigned to: @NickeManarin on GitHub.

Describe the bug
After switching to a different color theme the application crashes.

To Reproduce
Steps to reproduce the behavior:

  1. Go to Options - Application
  2. Select a different Color theme
  3. Error message appears: "Error while selecting the app's theme"

Expected behavior
After selecting of a new color theme the application should switch to the new color theme.

Screenshots
Image

Desktop (please complete the following information):

  • OS: Windows 10 22H2
  • Version 2.41.3

Additional context

► Title - 
	Error while selecting the app's theme.
♦ [Version] Date/Hour - 
	[2.41.3] 06/09/2025 03:14:00
▬ Message - 
	Object reference not set to an instance of an object.
○ Type - 
	System.NullReferenceException
▲ Source - 
	ScreenToGif
▼ TargetSite - 
	Void RefreshVisual()
♠ StackTrace - 
   at ScreenToGif.Controls.NotifyIcon.RefreshVisual() in R:\Source\ScreenToGif\ScreenToGif\Controls\NotifyIcon.cs:line 472
   at ScreenToGif.Util.ThemeHelper.RefreshNotificationIcon() in R:\Source\ScreenToGif\ScreenToGif\Util\ThemeHelper.cs:line 71
   at ScreenToGif.Util.ThemeHelper.SelectTheme(AppThemes theme) in R:\Source\ScreenToGif\ScreenToGif\Util\ThemeHelper.cs:line 44
   at ScreenToGif.Windows.Options.AppThemeComboBox_SelectionChanged(Object sender, SelectionChangedEventArgs e) in R:\Source\ScreenToGif\ScreenToGif\Windows\Options.xaml.cs:line 183
Originally created by @stef-19 on GitHub (Jun 9, 2025). Original GitHub issue: https://github.com/NickeManarin/ScreenToGif/issues/1391 Originally assigned to: @NickeManarin on GitHub. **Describe the bug** After switching to a different color theme the application crashes. **To Reproduce** Steps to reproduce the behavior: 1. Go to Options - Application 2. Select a different Color theme 3. Error message appears: "Error while selecting the app's theme" **Expected behavior** After selecting of a new color theme the application should switch to the new color theme. **Screenshots** ![Image](https://github.com/user-attachments/assets/5b1c0e73-3972-45db-944c-e0111fc9e77f) **Desktop (please complete the following information):** - OS: Windows 10 22H2 - Version 2.41.3 **Additional context** ``` ► Title - Error while selecting the app's theme. ♦ [Version] Date/Hour - [2.41.3] 06/09/2025 03:14:00 ▬ Message - Object reference not set to an instance of an object. ○ Type - System.NullReferenceException ▲ Source - ScreenToGif ▼ TargetSite - Void RefreshVisual() ♠ StackTrace - at ScreenToGif.Controls.NotifyIcon.RefreshVisual() in R:\Source\ScreenToGif\ScreenToGif\Controls\NotifyIcon.cs:line 472 at ScreenToGif.Util.ThemeHelper.RefreshNotificationIcon() in R:\Source\ScreenToGif\ScreenToGif\Util\ThemeHelper.cs:line 71 at ScreenToGif.Util.ThemeHelper.SelectTheme(AppThemes theme) in R:\Source\ScreenToGif\ScreenToGif\Util\ThemeHelper.cs:line 44 at ScreenToGif.Windows.Options.AppThemeComboBox_SelectionChanged(Object sender, SelectionChangedEventArgs e) in R:\Source\ScreenToGif\ScreenToGif\Windows\Options.xaml.cs:line 183 ```
kerem 2026-03-01 19:14:26 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ScreenToGif#3643
No description provided.