From: ttp Date: Sat, 26 Dec 2009 14:20:16 +0000 (+0900) Subject: AppliStation-GUI,「インストー先のフォルダー」の表示で直前に選択していたパッケージのファイルが表示されることがある不具合を修正 X-Git-Tag: v1.3.2b2~6 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=4b54bf20f3eb3c45223ca9f98e9a24d989ae3a8f;hp=52c00abac238249dbb22169dad397f6913e0ca74;p=applistation%2FAppliStation.git AppliStation-GUI,「インストー先のフォルダー」の表示で直前に選択していたパッケージのファイルが表示されることがある不具合を修正 --- diff --git a/AppliStation/AppliStation.Util/ToolStripPetitLauncherMenuItem.cs b/AppliStation/AppliStation.Util/ToolStripPetitLauncherMenuItem.cs index 39723ae..f8c5097 100644 --- a/AppliStation/AppliStation.Util/ToolStripPetitLauncherMenuItem.cs +++ b/AppliStation/AppliStation.Util/ToolStripPetitLauncherMenuItem.cs @@ -50,10 +50,6 @@ namespace AppliStation.Util thread = null; } - try { - DropDownItems.Clear(); - } catch (NullReferenceException) { - } if (Directory.Exists(baseFolderPath)) { thread = new Thread(new ThreadStart(buildItems)); thread.Start(); @@ -112,6 +108,8 @@ Debug.Assert(! itemtext.Contains(".."), string.Format("{2} -- base:{0}, dirname: private void buildItems() { + DropDownItems.Clear(); + try { string folderPath = Path.GetFullPath(baseFolderPath); ToolStripSeparator sep = new ToolStripSeparator(); @@ -146,7 +144,7 @@ Debug.Assert(! itemtext.Contains(".."), string.Format("{2} -- base:{0}, dirname: /// /// /// - public static ToolStripMenuItem CreateMenuItemForFolder(string folderPath) + private static ToolStripMenuItem CreateMenuItemForFolder(string folderPath) { ToolStripMenuItem item = CreateMenuItemForFile(folderPath, "フォルダーを開く(&O)"); item.Image = GUIUtils.ShellIconForFolder.ToBitmap(); @@ -159,7 +157,7 @@ Debug.Assert(! itemtext.Contains(".."), string.Format("{2} -- base:{0}, dirname: /// /// ファイルパス /// 生成されたメニューアイテム - public static ToolStripMenuItem CreateMenuItemForFile(string filePath, string text) + private static ToolStripMenuItem CreateMenuItemForFile(string filePath, string text) { ToolStripMenuItem item = new ToolStripMenuItem(); @@ -214,7 +212,7 @@ Debug.Assert(! itemtext.Contains(".."), string.Format("{2} -- base:{0}, dirname: /// /// カレントフォルダー及びパスに追加されるフォルダー /// 生成されたメニューアイテム - public static ToolStripMenuItem CreateMenuItemForCmdAt(string folderPath) + private static ToolStripMenuItem CreateMenuItemForCmdAt(string folderPath) { string cmdPath = Environment.GetEnvironmentVariable("comspec"); if (string.IsNullOrEmpty(cmdPath) || (!File.Exists(cmdPath)))