mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-23 04:12:12 +00:00
Fixed: it was possible to add the same Docker several times using General.Interface.AddDocker().
This commit is contained in:
parent
76302375b9
commit
8b0f973b94
2 changed files with 2 additions and 1 deletions
|
@ -3581,6 +3581,8 @@ namespace CodeImp.DoomBuilder.Windows
|
|||
// This adds a docker
|
||||
public void AddDocker(Docker d)
|
||||
{
|
||||
if(dockerspanel.Contains(d)) return; //mxd
|
||||
|
||||
// Make sure the full name is set with the plugin name as prefix
|
||||
Plugin plugin = General.Plugins.FindPluginByAssembly(Assembly.GetCallingAssembly());
|
||||
d.MakeFullName(plugin.Name.ToLowerInvariant());
|
||||
|
|
|
@ -213,7 +213,6 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
{
|
||||
// Clean up
|
||||
General.Interface.RemoveDocker(undoredodocker);
|
||||
General.Interface.RemoveDocker(drawingOverridesDocker); //mxd
|
||||
|
||||
undoredopanel.Dispose();
|
||||
drawingOverridesPanel.Dispose(); //mxd
|
||||
|
|
Loading…
Reference in a new issue