Skip to content

macOS file picker not working properly #22111

Description

@Ruben2776

Describe the bug

The file picker on macOS in a bundled .app package is not responding properly.

When using the file picking functionality, it does not work for the first few clicks. I had to focus on another app and then back again for it to register the file picking.

It works as it should when debugging it in Rider, but the problem occurs on a bundled app version.

I have tested this with PicView with Avalonia version 12.1.x on macOS 15.7.3 and 15.6.1. It has also been reported in Ruben2776/PicView#386

I believe this is in relation to #21799. I experienced no trouble in the Avalonia 11.x versions.

The changelog for 12.1.1 mentions

macOS – Fix app activation by @JakobScholer in #21799

but it still occurs in 12.1.1.

To Reproduce

Use IStorageProvider with FolderPickerOpenOptions, FilePickerSaveOptions or FilePickerOpenOptions in a bundled app. Active either one of them, notice nothing happens. Switch to another window, and then back again and notice it works,

Expected behavior

It should be immediately responsive without having to switch to another window.

Avalonia version

12.1.1

OS

macOS

Additional context

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions