Skip to content

Commit 0f4b477

Browse files
committed
When terminal cannot change colors, always ask to not display the
warning window
1 parent c5ab009 commit 0f4b477

File tree

1 file changed

+9
-19
lines changed

1 file changed

+9
-19
lines changed

pyradio/radio.py

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3123,28 +3123,18 @@ def _print_playlist_recovery_error(self):
31233123

31243124
def _show_no_themes(self):
31253125
if self._cnf.show_no_themes_message:
3126-
if not curses.can_change_color():
3127-
txt = '''|This terminal reports to |Curses| (the library
3128-
|this program is based on), that it |cannot
3129-
||change colors| while running.
3130-
3131-
|Therefore, using |themes is disabled| and the
3132-
||default theme| is used.
3133-
'''
3134-
caption = ' Themes Disabled '
3135-
else:
3136-
txt = '''||Curses| (the library this program is based on), will not display
3137-
|colors |correctly| in this terminal, (after they have been |changed by
3138-
|PyRadio.
3126+
txt = '''||Curses| (the library this program is based on), will not display
3127+
|colors |correctly| in this terminal, (after they have been |changed by
3128+
|PyRadio.
31393129
3140-
|Therefore, using |themes is disabled| and the |default theme| is used.
3130+
|Therefore, using |themes is disabled| and the |default theme| is used.
31413131
3142-
|For more info, please refer to:
3143-
||https://github.com/coderholic/pyradio/#virtual-terminal-restrictions
3132+
|For more info, please refer to:
3133+
||https://github.com/coderholic/pyradio/#virtual-terminal-restrictions
31443134
3145-
|Press "|x|" to never display this message in the future, or
3146-
'''
3147-
caption = ' Themes Disabled '
3135+
|Press "|x|" to never display this message in the future, or
3136+
'''
3137+
caption = ' Themes Disabled '
31483138

31493139
self._show_help(txt, mode_to_set=self.ws.NO_THEMES_MODE, caption=caption)
31503140
self._cnf.no_themes_notification_shown = True

0 commit comments

Comments
 (0)