mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 04:39:02 +08:00
Display message on open file event
CURA-11288
This commit is contained in:
parent
2b5f8b3a7c
commit
87caa0307a
@ -1154,6 +1154,15 @@ class CuraApplication(QtApplication):
|
||||
"""Handle Qt events"""
|
||||
|
||||
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:
|
||||
self._openFile(event.file())
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user