mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2024-11-27 10:05:41 -05:00
mac file filter fix
This commit is contained in:
parent
8f30532ed4
commit
2858cbf56b
1 changed files with 5 additions and 0 deletions
|
@ -92,7 +92,12 @@ class ChartEditorUploadChartDialog extends ChartEditorBaseDialog
|
||||||
if (this.locked) return;
|
if (this.locked) return;
|
||||||
|
|
||||||
this.lock();
|
this.lock();
|
||||||
|
// TODO / BUG: File filtering not working on mac finder dialog, so we don't use it for now
|
||||||
|
#if !mac
|
||||||
FileUtil.browseForBinaryFile('Open Chart', [FileUtil.FILE_EXTENSION_INFO_FNFC], onSelectFile, onCancelBrowse);
|
FileUtil.browseForBinaryFile('Open Chart', [FileUtil.FILE_EXTENSION_INFO_FNFC], onSelectFile, onCancelBrowse);
|
||||||
|
#else
|
||||||
|
FileUtil.browseForBinaryFile('Open Chart', null, onSelectFile, onCancelBrowse);
|
||||||
|
#end
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue