mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-02 08:44:25 +08:00
Add log entry when opening a file via Qt event
This helps debugging CURA-730, and might also help debugging similar issues in the future. It's a user-triggered event so this warrants an info-level log entry. Contributes to issue CURA-730.
This commit is contained in:
parent
b9786e5208
commit
935596d603
@ -207,6 +207,7 @@ class CuraApplication(QtApplication):
|
|||||||
# Handle Qt events
|
# Handle Qt events
|
||||||
def event(self, event):
|
def event(self, event):
|
||||||
if event.type() == QEvent.FileOpen:
|
if event.type() == QEvent.FileOpen:
|
||||||
|
Logger.log("i", "File open via Qt event: %s", event.file())
|
||||||
self._openFile(event.file())
|
self._openFile(event.file())
|
||||||
|
|
||||||
return super().event(event)
|
return super().event(event)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user