mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
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:
parent
4b375ce2fe
commit
00de7497a4
5 changed files with 237 additions and 147 deletions
11
plugins/LocalFileProvider/__init__.py
Normal file
11
plugins/LocalFileProvider/__init__.py
Normal 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() }
|
||||
Loading…
Add table
Add a link
Reference in a new issue