Skip to content

Add option to hide window on close for macOS #498

@mrroman

Description

@mrroman

Hide window on close is a common workflow for macOS apps. Users close the window, but the application is working in the background with opened document. If you want to go back, you just click app icon in the dock.

Expected Behavior

When user presses window Close button, the window is hidden (not minimized).

Current Behavior

When use presses window Close button, it closes the application.

Possible Solution

Add option in the preferences to enable described behaviour. I think we can use QWindow::hide() method.

Steps to Reproduce (for bugs)

Context

This will implement common macOS app workflow.

Your Environment

  • KeePassXC 2.1.4
  • Qt version (e.g. Qt 5.3):
  • Compiler (e.g. Clang++3.6.0):
  • Operating System and version: macOS Sierra

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions