From eeb00c70e44a0643a30106ae6879869a5b223a9b Mon Sep 17 00:00:00 2001 From: Florian Kinder Date: Sun, 18 Nov 2018 19:08:05 +0100 Subject: [PATCH] Fixes --- StaticMarker/MarkerConfig.cs | 7 +------ StaticMarker/MarkerEntriesConfig.cs | 15 +++++++++------ StaticMarker/MarkerPlugin.cs | 2 +- 3 files changed, 11 insertions(+), 13 deletions(-) diff --git a/StaticMarker/MarkerConfig.cs b/StaticMarker/MarkerConfig.cs index ace8bf4..369152c 100644 --- a/StaticMarker/MarkerConfig.cs +++ b/StaticMarker/MarkerConfig.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using Torch; +using Torch; namespace StaticMarker { diff --git a/StaticMarker/MarkerEntriesConfig.cs b/StaticMarker/MarkerEntriesConfig.cs index 698062b..77772d2 100644 --- a/StaticMarker/MarkerEntriesConfig.cs +++ b/StaticMarker/MarkerEntriesConfig.cs @@ -1,14 +1,17 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; +using System.Collections.Generic; using VRage.Game; namespace StaticMarker { public class MarkerEntriesConfig { - public List Entries = new List(); + private List _entries = new List(); + public List Entries { + get => _entries; + set { + _entries.Clear(); + _entries.AddRange(value); + } + } } } diff --git a/StaticMarker/MarkerPlugin.cs b/StaticMarker/MarkerPlugin.cs index 62f44a7..7f07a98 100644 --- a/StaticMarker/MarkerPlugin.cs +++ b/StaticMarker/MarkerPlugin.cs @@ -16,7 +16,7 @@ namespace StaticMarker { public class MarkerPlugin : TorchPluginBase, IWpfPlugin { - const string ConfigFile = "StaticMarkerEntries.cfg"; + const string ConfigFile = "StaticMarker.cfg"; const string ConfigMarkersFile = "StaticMarkerEntries.cfg"; private MarkerControl _control;