mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-22 21:05:34 +01:00
Hide eject button when leaving location_view.
This commit is contained in:
parent
92877f804b
commit
fd1b799622
1 changed files with 3 additions and 0 deletions
|
|
@ -257,6 +257,9 @@ def location_changed(self, row):
|
|||
if 0 <= row and row <= 3:
|
||||
self.model().location_changed(row)
|
||||
|
||||
def leaveEvent(self, event):
|
||||
self.eject_button.hide()
|
||||
|
||||
def show_eject(self, location):
|
||||
self.eject_button.hide()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue