From 46486073ab9f7200f3a1d495334084fcf0f226d0 Mon Sep 17 00:00:00 2001 From: Iran Date: Sun, 19 Sep 2010 19:31:10 +0200 Subject: [PATCH] Display icon while running the Editor under mono, cant test it on windows --- OpenRA.Editor/Form1.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/OpenRA.Editor/Form1.cs b/OpenRA.Editor/Form1.cs index 15db184da5..9df5ccff0c 100644 --- a/OpenRA.Editor/Form1.cs +++ b/OpenRA.Editor/Form1.cs @@ -36,6 +36,9 @@ namespace OpenRA.Editor Rules.LoadRules(Game.modData.Manifest, new Map()); surface1.AfterChange += MakeDirty; + + string path = Directory.GetCurrentDirectory(); + Icon = new Icon(path + Path.DirectorySeparatorChar + "OpenRA.Editor" + Path.DirectorySeparatorChar + "OpenRA.Editor.Icon.ico"); } void MakeDirty() { dirty = true; } @@ -420,4 +423,4 @@ namespace OpenRA.Editor catch { } } } -} \ No newline at end of file +}