mirror of
https://github.com/NickeManarin/ScreenToGif.git
synced 2026-04-26 07:35:54 +03:00
[GH-ISSUE #1391] [Bug] Crash after switching color theme #1024
Labels
No labels
copy cats
duplicated
future feature
pull-request
⬜ Accepted
⬜ Completed
⬜ Help Wanted 💪
⬜ In Progress
⬜ Missing Details
⬜ Pending
⬜ Waiting For Answer ⏳
🆕 feature preview
🔷 Bug 🐛
🔷 Out Of Scope
🔷 Out Of Scope
🔷 Question
🔷Enhancement
🔷Enhancement
🔷Invalid / External
🔷Knowledge Base
🔷Won't Fix
🕑 High
🕑 High
🕑 High
🕕 Medium
🕙 Low
🕛 Critical
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ScreenToGif#1024
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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:
Expected behavior
After selecting of a new color theme the application should switch to the new color theme.
Screenshots

Desktop (please complete the following information):
Additional context
@NickeManarin commented on GitHub (Jun 9, 2025):
Thanks, the tooltip of the notification icon had not been created yet.
@fz0000 commented on GitHub (Jul 11, 2025):
github.com/NickeManarin/ScreenToGif@597220a95a/ScreenToGif/Controls/NotifyIcon.cs (L479-L486)Hi @NickeManarin, This modification does not completely fix this issue.
It doesn’t crash when switching the color theme now, but the theme of the tray icon context menu is still incorrect unless I relaunch the app.
https://github.com/user-attachments/assets/cb8abbbe-a155-4005-8025-fce2b24c8c33
I found that this code was commented out in this commit. After uncommenting it, the
NotifyToolTipElementis not null and the issue is resolved:github.com/NickeManarin/ScreenToGif@dc91a5d90f/ScreenToGif/Controls/NotifyIcon.cs (L453)Was this code commented out by mistake or because it had caused side effects before?