Skip to content

Commit

Permalink
imp - Refresh should work properly in player
Browse files Browse the repository at this point in the history
---

We've re-added the refresh code.

---

Type: imp
Breaking: False
Doc Required: False
Part: 1/1
  • Loading branch information
AptiviCEO committed Feb 28, 2024
1 parent 5ed2dc6 commit c9ce987
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,8 @@ public static void PlayerLoop()
Thread.Sleep(1);
try
{
if (!playerScreen.CheckBufferedPart("BassBoom Player"))
playerScreen.AddBufferedPart("BassBoom Player", screenPart);
wasRerendered = ConsoleResizeHandler.WasResized(false);
ScreenTools.Render();

Expand Down Expand Up @@ -241,15 +243,19 @@ private static void HandleKeypressIdleMode(ConsoleKeyInfo keystroke, Screen play
break;
case ConsoleKey.H:
PlayerControls.ShowHelp();
playerScreen.RequireRefresh();
break;
case ConsoleKey.I:
PlayerControls.ShowSongInfo();
playerScreen.RequireRefresh();
break;
case ConsoleKey.A:
PlayerControls.PromptForAddSong();
playerScreen.RequireRefresh();
break;
case ConsoleKey.S:
PlayerControls.PromptForAddDirectory();
playerScreen.RequireRefresh();
break;
case ConsoleKey.R:
PlayerControls.Stop(false);
Expand Down Expand Up @@ -321,12 +327,15 @@ private static void HandleKeypressPlayMode(ConsoleKeyInfo keystroke, Screen play
break;
case ConsoleKey.H:
PlayerControls.ShowHelp();
playerScreen.RequireRefresh();
break;
case ConsoleKey.I:
PlayerControls.ShowSongInfo();
playerScreen.RequireRefresh();
break;
case ConsoleKey.S:
PlayerControls.PromptSeek();
playerScreen.RequireRefresh();
break;
case ConsoleKey.E:
Equalizer.OpenEqualizer(playerScreen);
Expand Down

0 comments on commit c9ce987

Please sign in to comment.