Skip to content

Commit

Permalink
Make sure console cursor is visible.
Browse files Browse the repository at this point in the history
  • Loading branch information
macevhicz authored and MHendricks committed Aug 16, 2024
1 parent ec8f404 commit 0cf9ff5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions preditor/gui/console.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,11 @@ def __init__(self, parent):
self.clickPos = None
self.anchor = None

# Make sure console cursor is visible. It can get it's width set to 0 with
# unusual(ie not 100%) os display scaling.
if not self.cursorWidth():
self.setCursorWidth(1)

def doubleSingleShotSetScrollValue(self, origPercent):
"""This double QTimer.singleShot monkey business seems to be the only way
to get scroll.maximum() to update properly so that we calc newValue
Expand Down

0 comments on commit 0cf9ff5

Please sign in to comment.