Windows-Auto-Night-Mode icon indicating copy to clipboard operation
Windows-Auto-Night-Mode copied to clipboard

Windows 10 2004 Delete Custom.theme prompt

Open shadeMe opened this issue 4 years ago • 8 comments

Since upgrading to Windows 10 2004, AutoNightMode periodically prompts me to confirm moving the automatically generated Custom.theme file to the recycle bin. Ideally, this file should be permanently deleted without any interaction with the shell.

App build: b3.0.19

shadeMe avatar Dec 15 '20 19:12 shadeMe

well, I can't remember adding this error handling to this app 🤔

Armin2208 avatar Dec 15 '20 22:12 Armin2208

Could very well be that something on changed on the Windows side that exposed a bug in your code.

shadeMe avatar Dec 16 '20 12:12 shadeMe

did you still experience this issue / have you a screenshot?

Armin2208 avatar Dec 16 '20 14:12 Armin2208

Screenshot 2020-12-16 182437

Yeah, it looks like a normal prompt like the one above but the icon in the taskbar is that of AutoNightMode.

shadeMe avatar Dec 16 '20 17:12 shadeMe

ok thanks O.o

Armin2208 avatar Dec 16 '20 20:12 Armin2208

I have a suspicion that this occurs when the screens are turned off. This still needs more investigation. We can't really fix the underlying issue as this seems to be an effect of using the private API that has been discovered to switch themes.

However it might be possible to work around it to not invoke the theme switch during the conditions that cause this to occur. @shadeMe Were you able to observe any specific situations the prompt is showing up under?

Spiritreader avatar Sep 30 '21 17:09 Spiritreader

None as such. The screen was never off when it happened. It hasn't been occurring regularly for a while now (might have something to with a specific Windows update that got installed in the meantime), but it did pop-up a couple of days ago as soon as the theme automatically switched according to the configured time setting.

shadeMe avatar Sep 30 '21 17:09 shadeMe

Hmm yes. That's unfortunate. I had this happen on my laptop a while ago, and once on my desktop a few days ago.

Thanks for the update!

Spiritreader avatar Sep 30 '21 18:09 Spiritreader

I now know why it's happening. This occurs when a theme file has it's GUID changed but retains the same name. There have been some changes to the ThemeManager class and how themes are applied in ADM starting with 10.3.

Please try this one out and let us know if it's still an issue for you.

Spiritreader avatar Oct 01 '22 17:10 Spiritreader

The latest stable release has essentially solved this issue, I think.

shadeMe avatar Jul 26 '23 11:07 shadeMe