FileDialog: fix compilation error for sys.io.File on non-sys desktop targets
This commit is contained in:
@@ -248,7 +248,7 @@ class FileDialog
|
|||||||
**/
|
**/
|
||||||
public function open(filter:String = null, defaultPath:String = null, title:String = null):Bool
|
public function open(filter:String = null, defaultPath:String = null, title:String = null):Bool
|
||||||
{
|
{
|
||||||
#if desktop
|
#if (desktop && sys)
|
||||||
var worker = new BackgroundWorker();
|
var worker = new BackgroundWorker();
|
||||||
|
|
||||||
worker.doWork.add(function(_)
|
worker.doWork.add(function(_)
|
||||||
@@ -318,7 +318,7 @@ class FileDialog
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if desktop
|
#if (desktop && sys)
|
||||||
var worker = new BackgroundWorker();
|
var worker = new BackgroundWorker();
|
||||||
|
|
||||||
worker.doWork.add(function(_)
|
worker.doWork.add(function(_)
|
||||||
|
|||||||
Reference in New Issue
Block a user