qmk / qmk_toolbox

A Toolbox companion for QMK Firmware
https://qmk.fm/toolbox
MIT License
2.63k stars 508 forks source link

[macOS] Fix clearRecentDocuments not emptying the file box #466

Open fauxpark opened 6 months ago

fauxpark commented 6 months ago

Description

I'm not really sure why this has happened, but clearRecentDocuments() is no longer being called. Although the recent documents list is getting cleared properly, it does not trigger this function which removes the recent files from the combo box.

Only after adding @IBAction does it work again, but this introduces a new issue - the menu item is now always enabled even when the list is empty, whereas before presumably the underlying NSDocumentController controlled this property.

Types of Changes

Issues Fixed or Closed by This PR