Move open dialogue to separate file provider plug-in

We can now define plug-ins that specify where to open files from. This is one of the places where you can open files.
This breaks the main button to open files in the interface. It needs to be redirected to trigger the plug-in to show the open file dialogue.

Contributest o issue CURA-7868.
This commit is contained in:
Ghostkeeper 2021-01-04 15:48:51 +01:00
parent 4b375ce2fe
commit 00de7497a4
No known key found for this signature in database
GPG key ID: D2A8871EE34EC59A
5 changed files with 237 additions and 147 deletions

View file

@ -0,0 +1,11 @@
# Copyright (c) 2021 Ultimaker B.V.
# Cura is released under the terms of the LGPLv3 or higher.
from . import LocalFileProvider
def getMetaData():
return {}
def register(app):
return { "file_provider": LocalFileProvider.LocalFileProvider() }