mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Add the current device classname to the plugboard UI.
This commit is contained in:
parent
e2038a71dd
commit
ce8edcb045
@ -39,6 +39,12 @@ class ConfigWidget(ConfigWidgetBase, Ui_Form):
|
|||||||
|
|
||||||
ConfigWidgetBase.initialize(self)
|
ConfigWidgetBase.initialize(self)
|
||||||
|
|
||||||
|
if self.gui.device_manager.connected_device is not None:
|
||||||
|
self.device_label.setText(_('Device currently connected: ') +
|
||||||
|
self.gui.device_manager.connected_device.__class__.__name__)
|
||||||
|
else:
|
||||||
|
self.device_label.setText(_('Device currently connected: None'))
|
||||||
|
|
||||||
self.devices = ['']
|
self.devices = ['']
|
||||||
for device in device_plugins():
|
for device in device_plugins():
|
||||||
n = device.__class__.__name__
|
n = device.__class__.__name__
|
||||||
|
@ -40,7 +40,18 @@ One possible use for a plugboard is to alter the title to contain series informa
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="0">
|
<item row="2" column="0" colspan="2">
|
||||||
|
<widget class="QLabel" name="device_label">
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="3" column="0" colspan="2">
|
||||||
|
<widget class="Line" name="line">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Horizontal</enum>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="4" column="0">
|
||||||
<layout class="QGridLayout" name="gridLayout_2">
|
<layout class="QGridLayout" name="gridLayout_2">
|
||||||
<item row="0" column="1">
|
<item row="0" column="1">
|
||||||
<widget class="QLabel" name="label_6">
|
<widget class="QLabel" name="label_6">
|
||||||
@ -123,7 +134,7 @@ One possible use for a plugboard is to alter the title to contain series informa
|
|||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="1">
|
<item row="4" column="1">
|
||||||
<layout class="QGridLayout" name="fields_layout">
|
<layout class="QGridLayout" name="fields_layout">
|
||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
<widget class="QLabel" name="label_2">
|
<widget class="QLabel" name="label_2">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user