mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix OSX GUI bug.
This commit is contained in:
parent
b81fe715b1
commit
7530d37ae2
@ -536,8 +536,6 @@ class Main(QObject, Ui_MainWindow):
|
|||||||
traceback.print_exc(e)
|
traceback.print_exc(e)
|
||||||
qFatal("Unable to connect to device. Please try unplugging and"+\
|
qFatal("Unable to connect to device. Please try unplugging and"+\
|
||||||
" reconnecting it")
|
" reconnecting it")
|
||||||
self.df.setText(self.df_template.arg("Connected: "+info[0])\
|
|
||||||
.arg(info[1]).arg(info[2]))
|
|
||||||
self.update_availabe_space(end_session=False)
|
self.update_availabe_space(end_session=False)
|
||||||
self.card = self.dev.card()
|
self.card = self.dev.card()
|
||||||
if self.card: self.device_tree.hide_card(False)
|
if self.card: self.device_tree.hide_card(False)
|
||||||
@ -549,6 +547,8 @@ class Main(QObject, Ui_MainWindow):
|
|||||||
self.status("Loading media list from Storage Card")
|
self.status("Loading media list from Storage Card")
|
||||||
self.card_model.set_data(self.dev.books(oncard=True))
|
self.card_model.set_data(self.dev.books(oncard=True))
|
||||||
self.progress(100)
|
self.progress(100)
|
||||||
|
self.df.setText(self.df_template.arg("Connected: "+info[0])\
|
||||||
|
.arg(info[1]).arg(info[2]))
|
||||||
self.window.setCursor(Qt.ArrowCursor)
|
self.window.setCursor(Qt.ArrowCursor)
|
||||||
|
|
||||||
def update_availabe_space(self, end_session=True):
|
def update_availabe_space(self, end_session=True):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user