Browse Source

Allow to drag&drop vst3 folders for any OS

Signed-off-by: falkTX <falktx@falktx.com>
tags/v2.2.0-RC1
falkTX 5 years ago
parent
commit
82bea67fe9
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 7 additions and 2 deletions
  1. +7
    -2
      source/frontend/widgets/racklistwidget.py

+ 7
- 2
source/frontend/widgets/racklistwidget.py View File

@@ -255,14 +255,19 @@ class RackListWidget(QListWidget):
self.clearFocus()

def isDragUrlValid(self, filename):
lfilename = filename.lower()

if os.path.isdir(filename):
#if os.path.exists(os.path.join(filename, "manifest.ttl")):
#return True
if MACOS and filename.lower().endswith((".vst", ".vst3")):
if MACOS and lfilename.endswith(".vst"):
return True
# TODO check vst3 supported feature
elif lfilename.endswith(".vst3"):
return True

elif os.path.isfile(filename):
if filename.lower().endswith(self.fSupportedExtensions):
if lfilename.endswith(self.fSupportedExtensions):
return True

return False


Loading…
Cancel
Save