mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-25 15:44:04 -06:00
Display message on open file event
CURA-11288
This commit is contained in:
parent
2b5f8b3a7c
commit
87caa0307a
1 changed files with 9 additions and 0 deletions
|
@ -1154,6 +1154,15 @@ class CuraApplication(QtApplication):
|
||||||
"""Handle Qt events"""
|
"""Handle Qt events"""
|
||||||
|
|
||||||
if event.type() == QEvent.Type.FileOpen:
|
if event.type() == QEvent.Type.FileOpen:
|
||||||
|
|
||||||
|
result_message = Message(
|
||||||
|
f"file: {str(event.file())}, url: {str(event.url())}",
|
||||||
|
lifetime=0,
|
||||||
|
title="OPENING FILE",
|
||||||
|
message_type=Message.MessageType.NEUTRAL,
|
||||||
|
)
|
||||||
|
result_message.show()
|
||||||
|
|
||||||
if self._plugins_loaded:
|
if self._plugins_loaded:
|
||||||
self._openFile(event.file())
|
self._openFile(event.file())
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue