Hide drag & drop widget before message boxes are shown

This commit is contained in:
Alex Spataru 2021-01-20 13:45:20 -05:00 committed by GitHub
parent ff245e3d0a
commit 9471292804
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()
}
//