Fix drag&drop of playlist
This commit is contained in:
1 parent
9a5ac282c5
commit
aa77d2d95c
2 files changed
+10
-1
No files matched your search
@@ -91,6 +91,15 @@ namespace VocaluxeLib.Menu
|
|||||||
private void _SetSelected(int newSelection)
|
private void _SetSelected(int newSelection)
|
||||||
{
|
{
|
||||||
IMenuElement el = _GetElement(_Selection);
|
IMenuElement el = _GetElement(_Selection);
|
||||||
|
if (newSelection == _Selection)
|
||||||
|
{
|
||||||
|
// Don't change current selection
|
||||||
|
if (el == null)
|
||||||
|
_Selection = -1;
|
||||||
|
else if (!el.Selected)
|
||||||
|
el.Selected = true;
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (el != null)
|
if (el != null)
|
||||||
el.Selected = false;
|
el.Selected = false;
|
||||||
_Selection = newSelection;
|
_Selection = newSelection;
|
||||||
|
|||||||
@@ -1039,7 +1039,7 @@ namespace VocaluxeLib.Menu
|
|||||||
|
|
||||||
en.Cover.LoadSkin();
|
en.Cover.LoadSkin();
|
||||||
en.Cover.Y += Rect.Y + (i * _Theme.EntryHeight);
|
en.Cover.Y += Rect.Y + (i * _Theme.EntryHeight);
|
||||||
en.Cover.X += Rect.X;
|
en.Cover.X += Rect.X;
|
||||||
|
|
||||||
en.Text1 = new CText(_Text1);
|
en.Text1 = new CText(_Text1);
|
||||||
en.Text1.X += Rect.X;
|
en.Text1.X += Rect.X;
|
||||||
|
|||||||
Reference in new issue
Block a user