'Force the library view to refresh, taking into consideration new
device books information'

def refresh_ondevice(self, reset_only=False):

    with self.library_view.preserve_state():
        self.book_on_device(None, reset=True)
        if reset_only:
            return
        self.library_view.model().refresh_ondevice()
