Dont use icon on non-SDL macOS window (not implemented)

This commit is contained in:
2026-04-09 10:44:17 +02:00
parent ad90e39447
commit 60881a74c9
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -654,7 +654,7 @@ Window* Editor::CreateMainWindow()
PROFILE_MEM(Editor);
Window* window = Managed->GetMainWindow();
#if PLATFORM_LINUX || PLATFORM_MAC
#if PLATFORM_LINUX || (PLATFORM_MAC && PLATFORM_SDL)
// Set window icon
const String iconPath = Globals::BinariesFolder / TEXT("Logo.png");
if (FileSystem::FileExists(iconPath))
+2 -1
View File
@@ -71,7 +71,8 @@ public class FlaxEditor : EngineTarget
break;
case TargetPlatform.Mac:
options.OutputFolder = Path.Combine(options.WorkingDirectory, "Binaries", "Editor", "Mac", options.Configuration.ToString());
options.DependencyFiles.Add(Path.Combine(Globals.EngineRoot, "Source", "Logo.png"));
if (EngineConfiguration.WithSDL(options))
options.DependencyFiles.Add(Path.Combine(Globals.EngineRoot, "Source", "Logo.png"));
break;
default: throw new InvalidPlatformException(options.Platform.Target, "Not supported Editor platform.");
}