DI-01Second launch focuses the running window
Without a single-instance guard, every launch starts a new process with its own window and its own state. Two copies then fight over the same files and settings. Register a single-instance handler first, and in it restore and focus the main window: unminimize, show, focus — a minimized or hidden window must come back too.