Skip to content

Commit 7067a77

Browse files
author
SlavaRa
committed
Minor cleanup...
1 parent b0e451c commit 7067a77

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

External/Plugins/ProjectManager/Controls/TreeView/ProjectContextMenu.cs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,10 @@
22
using System.IO;
33
using System.Collections;
44
using System.Collections.Generic;
5-
using System.Diagnostics;
65
using System.Drawing;
76
using System.Windows.Forms;
87
using System.ComponentModel;
98
using ProjectManager.Projects;
10-
using ProjectManager.Projects.AS2;
119
using PluginCore.Localization;
1210
using PluginCore.Helpers;
1311
using PluginCore;
@@ -23,7 +21,7 @@ namespace ProjectManager.Controls.TreeView
2321
public class ProjectContextMenu : ContextMenuStrip
2422
{
2523
Project project;
26-
ProjectTreeView projectTree;
24+
ProjectTreeView projectTree;
2725
static Image newFolderImg = Icons.Overlay(Icons.Folder.Img, Icons.BulletAdd.Img, 5, -3);
2826
public ToolStripMenuItem AddMenu = new ToolStripMenuItem(TextHelper.GetString("Label.Add"));
2927
public ToolStripMenuItem AddNewFolder = new ToolStripMenuItem(TextHelper.GetString("Label.NewFolder"), newFolderImg);
@@ -69,7 +67,7 @@ public class ProjectContextMenu : ContextMenuStrip
6967
public ProjectContextMenu()
7068
{
7169
this.Renderer = new DockPanelStripRenderer();
72-
this.Font = PluginCore.PluginBase.Settings.DefaultFont;
70+
this.Font = PluginBase.Settings.DefaultFont;
7371
this.ImageScalingSize = ScaleHelper.Scale(new Size(16, 16));
7472
NothingToDo.Enabled = false;
7573
NoProjectOutput.Enabled = false;
@@ -480,7 +478,7 @@ private void AddFileItems(MergableMenu menu, string path, bool addPaste)
480478
AddHideItems(menu, path, 3);
481479
}
482480

483-
private void AddHideItems(MergableMenu menu, string path,int group)
481+
private void AddHideItems(MergableMenu menu, string path, int group)
484482
{
485483
bool hidden = project.IsPathHidden(path);
486484
bool showHidden = project.ShowHiddenPaths;

External/Plugins/ProjectManager/PluginUI.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ public class PluginUI : DockPanelControl
1818
public FDMenus menus;
1919
TreeBar treeBar;
2020
Project project;
21-
PluginMain plugin;
2221
LinkLabel help;
2322
ProjectTreeView tree;
2423
ProjectContextMenu menu;
@@ -32,7 +31,6 @@ public class PluginUI : DockPanelControl
3231
public PluginUI(PluginMain plugin, FDMenus menus, FileActions fileActions, ProjectActions projectActions)
3332
{
3433
this.menus = menus;
35-
this.plugin = plugin;
3634
this.AutoKeyHandling = true;
3735
this.Text = TextHelper.GetString("Title.PluginPanel");
3836

@@ -129,7 +127,6 @@ public void SetProject(Project project)
129127
List<Project> projects = tree.Projects;
130128
projects.Clear(); // only one project active
131129
if (project != null) projects.Add(project);
132-
else projects.Clear();
133130
tree.Projects = projects;
134131
tree.Project = project;
135132
tree_AfterSelect(tree, null);

0 commit comments

Comments
 (0)