Skip to content

Commit

Permalink
replace msg_counter with clicked_label_new
Browse files Browse the repository at this point in the history
  • Loading branch information
kanishka-linux committed Feb 17, 2018
1 parent 1a1c6c5 commit c824296
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions kawaii_player/widgets/thumbnail.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ def setup_globals(
self.fs_timer_focus.setSingleShot(True)
self.prev_dim_label = (self.maximumWidth(), self.maximumHeight())
self.rect = None
self.msg_counter = 0

if obj_name is not None:
self.setObjectName(_fromUtf8(obj_name))
Expand Down Expand Up @@ -608,10 +607,9 @@ def mouseMoveEvent(self, event):
else:
if self.rect is None:
self.rect = QtCore.QRect(self.x()+20, self.y()+20, self.width()-40, self.height()-40)
if self.rect.contains(event.pos()) and self.msg_counter < 100:
if self.rect.contains(event.pos()) and not ui.clicked_label_new:
ui.progressEpn.setValue(0)
ui.progressEpn.setFormat((self.tooltip))
self.msg_counter += 1
else:
ui.progressEpn.setValue(0)
ui.progressEpn.setFormat((''))
Expand Down Expand Up @@ -1130,7 +1128,8 @@ def mouseReleaseEvent(self, ev):
ui.video_mode_index = 6
mn = ui.label.winId()
else:
self.msg_counter = 101
if num >= 0:
ui.clicked_label_new = True
ui.video_mode_index = 7
mn = ui.label_new.winId()
if ui.player_theme == 'default':
Expand Down

0 comments on commit c824296

Please sign in to comment.