mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -04:00
Replace import/export env with Shift click
This commit is contained in:
parent
e6225210fc
commit
fda691fc94
2 changed files with 3 additions and 3 deletions
|
@ -793,7 +793,7 @@ class Browser(QMainWindow):
|
|||
@no_arg_trigger
|
||||
@skip_if_selection_is_empty
|
||||
def _on_export_notes(self) -> None:
|
||||
if os.getenv("ANKI_BACKEND_IMPORT_EXPORT"):
|
||||
if KeyboardModifiersPressed().shift:
|
||||
nids = self.selected_notes()
|
||||
ExportDialog(self.mw, nids=nids)
|
||||
else:
|
||||
|
|
|
@ -1182,7 +1182,7 @@ title="{}" {}>{}</button>""".format(
|
|||
def onImport(self) -> None:
|
||||
import aqt.importing
|
||||
|
||||
if os.getenv("ANKI_BACKEND_IMPORT_EXPORT"):
|
||||
if KeyboardModifiersPressed().shift:
|
||||
import_file(self)
|
||||
else:
|
||||
aqt.importing.onImport(self)
|
||||
|
@ -1190,7 +1190,7 @@ title="{}" {}>{}</button>""".format(
|
|||
def onExport(self, did: DeckId | None = None) -> None:
|
||||
import aqt.exporting
|
||||
|
||||
if os.getenv("ANKI_BACKEND_IMPORT_EXPORT"):
|
||||
if KeyboardModifiersPressed().shift:
|
||||
ExportDialog(self, did=did)
|
||||
else:
|
||||
aqt.exporting.ExportDialog(self, did=did)
|
||||
|
|
Loading…
Reference in a new issue