diff --git a/Vocaluxe/Menu/CObjectInteractions.cs b/Vocaluxe/Menu/CObjectInteractions.cs index 30dd279c..854d5fd9 100644 --- a/Vocaluxe/Menu/CObjectInteractions.cs +++ b/Vocaluxe/Menu/CObjectInteractions.cs @@ -65,6 +65,25 @@ namespace Vocaluxe.Menu Active = false; _ScreenArea = new SRectF(0f, 0f, CSettings.iRenderW, CSettings.iRenderH, 0f); } + + public void Clear() + { + _Interactions.Clear(); + _Statics.Clear(); + _Texts.Clear(); + _Buttons.Clear(); + _SelectSlides.Clear(); + + _Selection = 0; + + _PrevMouseX = 0; + _PrevMouseY = 0; + + _MouseDX = 0; + _MouseDY = 0; + + Active = false; + } #region GetLists public List GetButtons() { diff --git a/Vocaluxe/Menu/CPlaylist.cs b/Vocaluxe/Menu/CPlaylist.cs index a2017c49..f00d7663 100644 --- a/Vocaluxe/Menu/CPlaylist.cs +++ b/Vocaluxe/Menu/CPlaylist.cs @@ -129,6 +129,7 @@ namespace Vocaluxe.Menu public void Init() { + _Interactions.Clear(); PrepareList(); _Interactions.AddText(_Theme.TextPlaylistHeader); _Interactions.AddStatic(_Theme.StaticCover);