From 458ee49fbdf445c7a400d40d11aa50de5d94d068 Mon Sep 17 00:00:00 2001 From: Josh Tynjala Date: Mon, 12 Feb 2024 09:48:47 -0800 Subject: [PATCH] FileDialog: fix compilation error for sys.io.File on non-sys desktop targets --- src/lime/ui/FileDialog.hx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lime/ui/FileDialog.hx b/src/lime/ui/FileDialog.hx index 62c7c1c00..013accbe5 100644 --- a/src/lime/ui/FileDialog.hx +++ b/src/lime/ui/FileDialog.hx @@ -248,7 +248,7 @@ class FileDialog **/ public function open(filter:String = null, defaultPath:String = null, title:String = null):Bool { - #if desktop + #if (desktop && sys) var worker = new BackgroundWorker(); worker.doWork.add(function(_) @@ -318,7 +318,7 @@ class FileDialog return false; } - #if desktop + #if (desktop && sys) var worker = new BackgroundWorker(); worker.doWork.add(function(_)