CarterPillow

Results 8 comments of CarterPillow

I honestly did not even think of that but this hides all the buttons in the "files" menu that do not have any effect until you open a library I...

Before Opening a Library ![image](https://github.com/user-attachments/assets/ddc86310-4549-4b83-a593-5356520bd7b8) ![image](https://github.com/user-attachments/assets/13305007-f8dd-4ce5-9cb7-40d54460a1b0) After ![image](https://github.com/user-attachments/assets/831269b4-4ccc-49ff-ac34-616f69d7e7c2) ![image](https://github.com/user-attachments/assets/34ef7f5f-a19a-4b37-bc45-ceaf29a02844) I looked at how the items were disabled in the version you showed (Alpha 9.4.0) and decided to add the "update_clipboard_actions"...

I woke up to a lot of merges and this no longer working so ill have a look at what broke it and fix this pr lol

@CyanVoxel Actually yeah! I'll have a look and see if I can't update the code to work.

That didn't take long! hopefully this is all working again lol.

> 1. It's not enabling the actions when i close the library and reopen a library. to fix it call `update_clipboard_actions()` from the `QtDriver.open_library()` method so it will enable actions...

> A very minor nit, but the function name calls the toolbar a clipboard, which usually refers to copy/paste. I feel update_menu_actions or update_toolbar_actions would be a more proper name....

> i meant only set the data if it’s a library related action. then enable or disable only those actions. alternatively you could just create a list of library related...