DeskFrame icon indicating copy to clipboard operation
DeskFrame copied to clipboard

[BUG] - One saved desktop frame disappears after restarting

Open hahv opened this issue 1 year ago • 5 comments

Describe the bug

When restarting the application or the computer,

  • With 3 frames created → only 2 are restored
  • With 2 frames created → only 1 is restored

Note that the disappeared frame IS LIKELY the one having files (files dropped into the frame); not folder.

Video

https://github.com/user-attachments/assets/cfb6d9e4-e947-4e62-bdd5-391c3c9ea78e

To Reproduce

  1. Create 2 or 3 frames on the desktop (all on the primary monitor).
  2. Close the app or restart the computer.
  3. Launch the app again — exactly one frame will be missing.

Expected behavior

All previously saved frames should be restored after restart.

Environment

  • OS: Windows 10 Pro 22H2 (build 19045.5965)
  • Display setup: Dual monitors; all frames placed on the main monitor (portrait orientation)
  • Scaling: 100% (no custom scaling)

Additional context

App version: 1.32.8 The missing frame is consistent (always one frame lost, regardless of how many were saved).

hahv avatar Nov 19 '25 06:11 hahv

Hi, I'll fix it tomorrow! (The issue is that the files are dropped into the frame from the same folder thus created with the same folder's uid.)

PinchToDebug avatar Nov 19 '25 11:11 PinchToDebug

Hi, I'll fix it tomorrow! (The issue is that the files are dropped into the frame from the same folder thus created with the same folder's uid.)

This is likely why the issue occurs. To make frames truly independent (loose coupling), it would be ideal if each new frame generated its own unique identifier — for example, based on the source folder path + frame creation timestamp (or any other method that guarantees uniqueness). Thank alot.

hahv avatar Nov 19 '25 11:11 hahv

That's exactly what I'm planning to do!

PinchToDebug avatar Nov 20 '25 10:11 PinchToDebug

The issue was that the registry key's name was "File frame" because the Instance.Name wasn't changed, so it was overwritten. https://github.com/PinchToDebug/DeskFrame/commit/fd2db97c8d817f2ed9e5968634a1805290c8f8cc

PinchToDebug avatar Nov 20 '25 14:11 PinchToDebug

I'll release a new version tomorrow.

PinchToDebug avatar Nov 20 '25 16:11 PinchToDebug