Skip to content

UI state is not saved correctly if not using the internal Quit menu item #1832

@sigmate

Description

@sigmate

Describe the bug

Running macOS, if I use Cmd+Q, the OS menu bar "Quit" item or any system way tell PCSX-Redux to exit, then all my currently opened windows won't be remembered at next launch. If I want to avoid the issue, I must click the internal ImGui menu item in the main window.

Expected behavior

The GUI state should be saved regardless of the way which is used to exit the app. Especially in a PSX development scenario where PCSX has to be started a lot and where it's easier to quit via a keyboard shortcut.

Steps to reproduce the bug

  1. Start PCSX
  2. Open, e.g. the CPU registers window
  3. Hit Cmd+Q
  4. Re-start PCSX
  5. CPU registers window does not re-open
  6. Open CPU registers window
  7. Click the internal "Quit" menu item in the main window
  8. Re-start PCSX
  9. The CPU registers window re-opens

Operating System

macOS Sequoia 15.2

PCSX-Redux version

Version: bc029a7
Build: 65
Changeset: bc029a7
Date & time: 2024-10-24 07:29:35

CPU model

Apple Silicon M2 MAX

GPU model & Drivers

Apple Silicon M2 MAX

BIOS version

SCPH5502 - SCPH5552 (EU)

Options

  • Dynarec CPU
  • 8MB
  • OpenGL GPU
  • Fastboot
  • Debugger

Iso checks

No response

Logs

Glfw Error 65548: Cocoa: Regular windows do not have icons on macOS
Loading memory card /Users/xxx/.config/pcsx-redux/memcard1.mcd
Loading memory card /Users/xxx/.config/pcsx-redux/memcard2.mcd
Warning: OpenGL error reporting disabled. See About dialog for more information.
PCSX-Redux booting
Copyright (C) 2019-2024 PCSX-Redux authors
CPU type: Interpreted
Loaded BIOS: /Users/xxx/Development/ps1usb/ps1transfer/bios.bin
Known BIOS detected: SCPH-5502 - SCPH-5552 (EU) (d786f0b9)

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions