Don't show old preview song in category view
This commit is contained in:
1 parent
f021e9a9f7
commit
4b348ceec6
2 files changed
+6
-2
No files matched your search
@@ -449,6 +449,7 @@ namespace VocaluxeLib.Menu.SongMenu
|
|||||||
_SelectionNr = categoryNr;
|
_SelectionNr = categoryNr;
|
||||||
else
|
else
|
||||||
_SelectionNr = -1;
|
_SelectionNr = -1;
|
||||||
|
_PreviewNr = _SelectionNr;
|
||||||
}
|
}
|
||||||
|
|
||||||
public virtual void UnloadTextures() {}
|
public virtual void UnloadTextures() {}
|
||||||
@@ -547,6 +548,11 @@ namespace VocaluxeLib.Menu.SongMenu
|
|||||||
_PreviewVideoStream = -1;
|
_PreviewVideoStream = -1;
|
||||||
|
|
||||||
CBase.Drawing.RemoveTexture(ref _Vidtex);
|
CBase.Drawing.RemoveTexture(ref _Vidtex);
|
||||||
|
|
||||||
|
//Make sure we don't have a preview here otherwise a change won't be recognized
|
||||||
|
//(e.g. leave a category with one song and set preview to 0 --> previewOld=previewNew=0 --> No change --> Old data shown
|
||||||
|
//Use internal nr because this function gets called from withing setPreviewNr
|
||||||
|
_PreviewNrInternal = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
#region ThemeEdit
|
#region ThemeEdit
|
||||||
|
|||||||
@@ -498,7 +498,6 @@ namespace VocaluxeLib.Menu.SongMenu
|
|||||||
{
|
{
|
||||||
base._EnterCategory(categoryNr);
|
base._EnterCategory(categoryNr);
|
||||||
|
|
||||||
_PreviewNr = 0;
|
|
||||||
SetSelectedSong(0);
|
SetSelectedSong(0);
|
||||||
_UpdateListIfRequired();
|
_UpdateListIfRequired();
|
||||||
}
|
}
|
||||||
@@ -507,7 +506,6 @@ namespace VocaluxeLib.Menu.SongMenu
|
|||||||
{
|
{
|
||||||
base._LeaveCategory();
|
base._LeaveCategory();
|
||||||
|
|
||||||
_PreviewNr = 0;
|
|
||||||
SetSelectedCategory(0);
|
SetSelectedCategory(0);
|
||||||
_UpdateListIfRequired();
|
_UpdateListIfRequired();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user