From ab0c6d0a23f72ce59ecea191d1e26d9bb35e46f8 Mon Sep 17 00:00:00 2001 From: niksedk Date: Wed, 27 Oct 2010 08:33:56 +0000 Subject: [PATCH] More roaming profile git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@96 99eadd0c-20b8-1223-b5c4-2a2b2df33de2 --- src/Forms/Main.cs | 3 +-- src/Logic/Configuration.cs | 8 ++++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/Forms/Main.cs b/src/Forms/Main.cs index bc2d161cb..2164d30b2 100644 --- a/src/Forms/Main.cs +++ b/src/Forms/Main.cs @@ -1376,7 +1376,7 @@ namespace Nikse.SubtitleEdit.Forms private void TryLoadIcon(ToolStripButton button, string iconName) { - string fullPath = Configuration.BaseDirectory + @"Icons\" + iconName + ".png"; + string fullPath = Configuration.IconsFolder + iconName + ".png"; if (File.Exists(fullPath)) button.Image = new Bitmap(fullPath); } @@ -1417,7 +1417,6 @@ namespace Nikse.SubtitleEdit.Forms toolStripSeparatorFindReplace.Visible = gs.ShowToolbarFind || gs.ShowToolbarReplace; toolStripSeparatorHelp.Visible = gs.ShowToolbarHelp; - } private void ToolStripButtonFileNewClick(object sender, EventArgs e) diff --git a/src/Logic/Configuration.cs b/src/Logic/Configuration.cs index 48a13d301..bc22521b5 100644 --- a/src/Logic/Configuration.cs +++ b/src/Logic/Configuration.cs @@ -26,6 +26,14 @@ namespace Nikse.SubtitleEdit.Logic } } + public static string IconsFolder + { + get + { + return DataDirectory + "Icons" + Path.DirectorySeparatorChar; + } + } + public static string VobSubCompareFolder { get