mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
...
This commit is contained in:
parent
e63d76a300
commit
656a28986e
@ -15,7 +15,7 @@ from calibre.constants import iswindows, isosx
|
|||||||
from calibre.customize.ui import is_disabled
|
from calibre.customize.ui import is_disabled
|
||||||
from calibre.devices.bambook.driver import BAMBOOK
|
from calibre.devices.bambook.driver import BAMBOOK
|
||||||
from calibre.gui2.dialogs.smartdevice import SmartdeviceDialog
|
from calibre.gui2.dialogs.smartdevice import SmartdeviceDialog
|
||||||
from calibre.gui2 import info_dialog
|
from calibre.gui2 import info_dialog, question_dialog
|
||||||
|
|
||||||
class ShareConnMenu(QMenu): # {{{
|
class ShareConnMenu(QMenu): # {{{
|
||||||
|
|
||||||
@ -222,6 +222,11 @@ class ConnectShareAction(InterfaceAction):
|
|||||||
running = dm.is_running('smartdevice')
|
running = dm.is_running('smartdevice')
|
||||||
if running:
|
if running:
|
||||||
dm.stop_plugin('smartdevice')
|
dm.stop_plugin('smartdevice')
|
||||||
|
if dm.get_option('smartdevice', 'autostart'):
|
||||||
|
if not question_dialog(self.gui, _('Disable autostart'),
|
||||||
|
_('Do you want wireless device connections to be'
|
||||||
|
' started automatically when calibre starts?')):
|
||||||
|
dm.set_option('smartdevice', 'autostart', False)
|
||||||
else:
|
else:
|
||||||
sd_dialog = SmartdeviceDialog(self.gui)
|
sd_dialog = SmartdeviceDialog(self.gui)
|
||||||
sd_dialog.exec_()
|
sd_dialog.exec_()
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>600</width>
|
<width>612</width>
|
||||||
<height>226</height>
|
<height>226</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
@ -22,7 +22,7 @@
|
|||||||
<widget class="QLabel" name="msg">
|
<widget class="QLabel" name="msg">
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>500</width>
|
<width>600</width>
|
||||||
<height>0</height>
|
<height>0</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
@ -57,7 +57,7 @@
|
|||||||
<item row="1" column="0">
|
<item row="1" column="0">
|
||||||
<widget class="QLabel" name="label_2">
|
<widget class="QLabel" name="label_2">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>&Password:</string>
|
<string>Optional &password:</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="buddy">
|
<property name="buddy">
|
||||||
<cstring>password_box</cstring>
|
<cstring>password_box</cstring>
|
||||||
@ -81,10 +81,10 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="3" column="1" colspan="2">
|
<item row="3" column="0" colspan="3">
|
||||||
<widget class="QCheckBox" name="autostart_box">
|
<widget class="QCheckBox" name="autostart_box">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>&Automatically allow connections at startup</string>
|
<string>&Automatically allow connections at calibre startup</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user