mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Mark library as current location when device detected
This commit is contained in:
parent
a1ec250de6
commit
81f081527d
@ -97,6 +97,7 @@ class LocationManager(QObject): # {{{
|
|||||||
self.free[2] = fs[2] if fs[2] is not None and cpb is not None else -1
|
self.free[2] = fs[2] if fs[2] is not None and cpb is not None else -1
|
||||||
self.update_tooltips()
|
self.update_tooltips()
|
||||||
if self.has_device != had_device:
|
if self.has_device != had_device:
|
||||||
|
self.location_library.setChecked(True)
|
||||||
self.locations_changed.emit()
|
self.locations_changed.emit()
|
||||||
if not self.has_device:
|
if not self.has_device:
|
||||||
self.location_library.trigger()
|
self.location_library.trigger()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user