mirror of
https://github.com/Serial-Studio/Serial-Studio.git
synced 2025-01-31 17:42:55 +08:00
Hide drag & drop widget before message boxes are shown
This commit is contained in:
parent
ff245e3d0a
commit
9471292804
@ -468,6 +468,9 @@ ApplicationWindow {
|
||||
// Open *.json & *.csv files on drag drop
|
||||
//
|
||||
onDropped: {
|
||||
// Hide rectangle
|
||||
dropRectangle.hide()
|
||||
|
||||
// Get dropped file URL and remove prefixed "file://"
|
||||
var path = drop.urls[0].toString()
|
||||
if (Qt.platform.os != "windows")
|
||||
@ -487,9 +490,6 @@ ApplicationWindow {
|
||||
// Process CSV files
|
||||
else if (cleanPath.endsWith(".csv"))
|
||||
CppCsvPlayer.openFile(cleanPath)
|
||||
|
||||
// Hide rectangle
|
||||
dropRectangle.hide()
|
||||
}
|
||||
|
||||
//
|
||||
|
Loading…
x
Reference in New Issue
Block a user