Skip to content

Commit

Permalink
Check the description to check the issue details
Browse files Browse the repository at this point in the history
Basically if the host will miss ~1 seconds of runtime, the 4th page will appear as the result of not clearing the PageIndex
  • Loading branch information
lemonek committed Mar 12, 2024
1 parent 37bf8e7 commit 2476bfc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions zstio-tv/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -248,13 +248,13 @@ private void TabTimerTick(object sender, EventArgs e)
if (PageTime == PageLength - 1)
TabTransition(1, 0);

if (PageTime == PageLength)
if (PageTime > PageLength)
{
if (PageIndex == Pages)
PageIndex++;
if (PageIndex > Pages)
{
PageIndex = 0;
}
PageIndex++;
PageTime = 0;
handler_content_tabcontrol.SelectedIndex = PageIndex;

Expand Down

0 comments on commit 2476bfc

Please sign in to comment.