Turn PrintMessage into receiver function

This commit is contained in:
2026-04-28 21:34:58 +03:00
parent fcde25c28a
commit 2f1978e6da
5 changed files with 43 additions and 42 deletions
+1 -1
View File
@@ -86,7 +86,7 @@ func CreateWindow() (*Window, error) {
if ok := SetCurrentStyle(screen, Config.FallbackStyle); !ok {
// Use hard-coded fallback style
screen.SetStyle(tcell.StyleDefault.Foreground(CurrentStyle.BufferAreaFg).Background(CurrentStyle.BufferAreaBg))
PrintMessage(&window, "Could not set style either to selected one nor to fallback one!")
window.PrintMessage("Could not set style either to selected one nor to fallback one!")
}
}