@@ -5037,6 +5037,11 @@ def _goto_history_back_handler(self):
5037
5037
5038
5038
def _handle_cursor_move_up (self ):
5039
5039
# logger.error('DE selection = {}, start pos = {}, current selection = {}, b_start = {}, b_end = {}, maxY = {}, maxX = {}'.format(self.selection, self.startPos, self._current_selection, self.bodyWinStartY, self.bodyWinEndY, self.bodyMaxY, self.maxX))
5040
+ if self ._limited_height_mode or self ._limited_width_mode :
5041
+ if logger .isEnabledFor (logging .DEBUG ):
5042
+ logger .debug ('_handle_cursor_move_up(): Not touching window, it\' s small' )
5043
+ self ._force_print_all_lines = False
5044
+ return
5040
5045
if self ._force_print_all_lines :
5041
5046
self ._force_print_all_lines = False
5042
5047
else :
@@ -5051,6 +5056,11 @@ def _handle_cursor_move_up(self):
5051
5056
5052
5057
def _handle_cursor_move_down (self ):
5053
5058
# logger.error('DE selection = {}, start pos = {}, current selection = {}, b_start = {}, b_end = {}, maxY = {}, maxX = {}'.format(self.selection, self.startPos, self._current_selection, self.bodyWinStartY, self.bodyWinEndY, self.bodyMaxY, self.maxX))
5059
+ if self ._limited_height_mode or self ._limited_width_mode :
5060
+ if logger .isEnabledFor (logging .DEBUG ):
5061
+ logger .debug ('_handle_cursor_move_down(): Not touching window, it\' s small' )
5062
+ self ._force_print_all_lines = False
5063
+ return
5054
5064
if self ._force_print_all_lines :
5055
5065
self ._force_print_all_lines = False
5056
5066
else :
@@ -5119,12 +5129,13 @@ def _play_next_station(self):
5119
5129
self ._reset_status_bar_right ()
5120
5130
if self .ws .window_mode == self .ws .PLAYLIST_MODE :
5121
5131
self ._show_stations_history_notification (2 )
5122
- elif not self .player .isPlaying ():
5123
- self ._show_stations_history_notification (3 )
5132
+ # elif not self.player.isPlaying():
5133
+ # self._show_stations_history_notification(3)
5124
5134
elif self .player .connecting :
5125
5135
self ._show_stations_history_notification (1 )
5126
5136
else :
5127
- self .selection = self .playing
5137
+ # if self.playing > -1:
5138
+ # self.selection = self.playing
5128
5139
self ._move_cursor_one_down ()
5129
5140
self .playSelection ()
5130
5141
self .refreshBody ()
@@ -5133,12 +5144,13 @@ def _play_previous_station(self):
5133
5144
self ._reset_status_bar_right ()
5134
5145
if self .ws .window_mode == self .ws .PLAYLIST_MODE :
5135
5146
self ._show_stations_history_notification (2 )
5136
- elif not self .player .isPlaying ():
5137
- self ._show_stations_history_notification (3 )
5147
+ # elif not self.player.isPlaying():
5148
+ # self._show_stations_history_notification(3)
5138
5149
elif self .player .connecting :
5139
5150
self ._show_stations_history_notification (1 )
5140
5151
else :
5141
- self .selection = self .playing
5152
+ # if self.playing > -1:
5153
+ # self.selection = self.playing
5142
5154
self ._move_cursor_one_up ()
5143
5155
self .playSelection ()
5144
5156
self .refreshBody ()
@@ -5245,14 +5257,15 @@ def _show_stations_history_notification(self, msg_id):
5245
5257
msg = (
5246
5258
'Operation not supported' ,
5247
5259
'Please wait for the player to settle...' ,
5248
- 'Operation supported in stations mode only...'
5260
+ 'Operation supported in stations mode only...' ,
5249
5261
'Player not playing...'
5250
5262
)
5251
5263
if self .player .isPlaying ():
5252
5264
self .log .write (msg = msg [msg_id ])
5253
5265
self .player .threadUpdateTitle ()
5254
5266
else :
5255
5267
self .log .write (msg = msg [msg_id ], help_msg = True , suffix = self ._status_suffix )
5268
+ self .player .threadUpdateTitle ()
5256
5269
else :
5257
5270
msg = (
5258
5271
'___Operation not suported!!!___\n ____Connection timeout is 0 ' ,
0 commit comments