Skip to content

Commit

Permalink
fix - Fixed homepage crash when moving mouse
Browse files Browse the repository at this point in the history
---

The homepage crash that occurs everytime the mouse is moved has been fixed.

---

Type: fix
Breaking: False
Doc Required: False
Backport Required: False
Part: 1/1
  • Loading branch information
AptiviCEO committed Aug 30, 2024
1 parent cce1036 commit 9923cf1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions public/Nitrocid/Shell/Homepage/HomepageTools.cs
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,8 @@ [new InputChoiceInfo(Translate.DoTranslation("Close"), Translate.DoTranslation("
if (Input.MouseInputAvailable)
{
var context = Input.ReadPointer();
if (context is null)
continue;

// Get the necessary positions
int settingsButtonWidth = ConsoleWrapper.WindowWidth / 2 - 5 + ConsoleWrapper.WindowWidth % 2;
Expand Down

0 comments on commit 9923cf1

Please sign in to comment.