objective-see / WhatsYourSign

WhatsYourSign adds a menu item to Finder.app. Simply right-, or control-click on any file to display its cryptographic signing information!
GNU General Public License v3.0
277 stars 26 forks source link

Title: InfoWindow in FinderSync Not Displaying in Foreground on Sequoia System #26

Open fjh658 opened 1 month ago

fjh658 commented 1 month ago

Description:

On the Sequoia system, the FinderSync extension's "Signing Info" window does not always appear in the foreground. This causes the window to sometimes be hidden behind other windows, making it less accessible when the "Signing Info" option is selected.

Steps to Reproduce:

On a Sequoia system, select an item in Finder. Use the Finder context menu to trigger the "Signing Info" option. The window may not appear on top of other open windows, requiring the user to manually bring it to the front. Expected Behavior:

The "Signing Info" window should always appear on top of other windows, functioning similarly to a pop-up menu, ensuring it is immediately visible.

Suggested Solution:

Modify the showSigningInfo: method to explicitly set the window level to NSPopUpMenuWindowLevel. This ensures the window behaves like a pop-up and always appears above other windows.

//center window
[[infoWindowController window] center];

// Modify the code in FinderSync.m
[[infoWindowController window] setLevel:NSPopUpMenuWindowLevel];

Setting the window level to NSPopUpMenuWindowLevel will make sure the "Signing Info" window remains in the foreground, which will improve the user experience, especially on Sequoia systems.

fdem-coder commented 10 hours ago

I have this issue too.