9 Commits

Author SHA1 Message Date
Kostas Karmas
96c4d66029 Revert making the open file dialog a separate LocalFileProvider plugin
This reverts commits 00de7497a4c2986cf8fd13be8f598a0f615f3d63 to 5f6b3b52c1848416c98f7d276fe02f08d067f675

CURA-7868
2021-01-07 16:35:40 +01:00
Ghostkeeper
5f6b3b52c1
Don't trigger open menu upon starting Cura
That would be very annoying.

Contributes to issue CURA-7868.
2021-01-04 18:13:18 +01:00
Kostas Karmas
70550594cd Connect the visibility of the components through their properties
As Ghostkeeper suspected correctly in the review comment https://github.com/Ultimaker/Cura/pull/9012#discussion_r549707433
the binding wasn't working because the model was being retrieved using a function
(CuraApplication.getFileProviderModel()).

Separating this model into a variable allows us to properly bind the "visible" properties of the
menu items with the count property of the model without a problem.

CURA-7868
2021-01-04 15:07:53 +01:00
Kostas Karmas
71994eaaf9 Change the Open File(s) option according to the file providers count
When there is only one file provider (i.e. the local file provider), the Open File(s) will be a
simple item in the File menu.
When there are more than one file providers, the Open File(s) will become a submenu in the File
menu, which will contain all the file providers as submenu items.

CURA-7868
2020-12-23 17:13:14 +01:00
Kostas Karmas
430550452f Add a new file menu option when there are multiple file providers
CURA-7868
2020-12-15 18:31:15 +01:00
maht
f3103e5808
Update FileMenu.qml 2020-07-17 12:01:49 +02:00
maht
1ce7f1838f
Update FileMenu.qml 2020-07-17 11:29:18 +02:00
Jaime van Kessel
7a3f9d621a Add save shortcut to save
No idea why it wasn't there in the first place.
2019-08-07 10:46:51 +02:00
Diego Prado Gesto
bf6817ce7a Reduce the size of the ApplicationMenu.qml file by moving some
components out to different files.

Contributes to CURA-5772.
2018-10-18 17:38:23 +02:00