mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Start work on usbms vdev
This commit is contained in:
parent
d0f41ab638
commit
8af9c474d6
@ -671,6 +671,13 @@ def device_plugins(include_disabled=False):
|
||||
yield plugin
|
||||
|
||||
|
||||
def usbms_plugins(include_disabled=True):
|
||||
from calibre.devices.usbms.driver import USBMS
|
||||
for plugin in device_plugins(include_disabled):
|
||||
if isinstance(plugin, USBMS) and plugin.name not in ('Folder Device Interface',):
|
||||
yield plugin
|
||||
|
||||
|
||||
def disabled_device_plugins():
|
||||
for plugin in _initialized_plugins:
|
||||
if isinstance(plugin, DevicePlugin):
|
||||
|
13
src/calibre/gui2/dialogs/connect_to_folder.py
Normal file
13
src/calibre/gui2/dialogs/connect_to_folder.py
Normal file
@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env python
|
||||
# License: GPLv3 Copyright: 2025, Kovid Goyal <kovid at kovidgoyal.net>
|
||||
|
||||
from qt.core import QVBoxLayout
|
||||
|
||||
from calibre.gui2.widgets2 import Dialog
|
||||
|
||||
|
||||
class ConnectToFolder(Dialog):
|
||||
|
||||
def __init__(self, parent=None):
|
||||
super().__init__(_('Connect to folder'), 'connect-to-folderx', parent=parent)
|
||||
self.l = l = QVBoxLayout(self)
|
Loading…
x
Reference in New Issue
Block a user