mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 09:16:38 -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
|
@no_arg_trigger
|
||||||
@skip_if_selection_is_empty
|
@skip_if_selection_is_empty
|
||||||
def _on_export_notes(self) -> None:
|
def _on_export_notes(self) -> None:
|
||||||
if os.getenv("ANKI_BACKEND_IMPORT_EXPORT"):
|
if KeyboardModifiersPressed().shift:
|
||||||
nids = self.selected_notes()
|
nids = self.selected_notes()
|
||||||
ExportDialog(self.mw, nids=nids)
|
ExportDialog(self.mw, nids=nids)
|
||||||
else:
|
else:
|
||||||
|
|
|
@ -1182,7 +1182,7 @@ title="{}" {}>{}</button>""".format(
|
||||||
def onImport(self) -> None:
|
def onImport(self) -> None:
|
||||||
import aqt.importing
|
import aqt.importing
|
||||||
|
|
||||||
if os.getenv("ANKI_BACKEND_IMPORT_EXPORT"):
|
if KeyboardModifiersPressed().shift:
|
||||||
import_file(self)
|
import_file(self)
|
||||||
else:
|
else:
|
||||||
aqt.importing.onImport(self)
|
aqt.importing.onImport(self)
|
||||||
|
@ -1190,7 +1190,7 @@ title="{}" {}>{}</button>""".format(
|
||||||
def onExport(self, did: DeckId | None = None) -> None:
|
def onExport(self, did: DeckId | None = None) -> None:
|
||||||
import aqt.exporting
|
import aqt.exporting
|
||||||
|
|
||||||
if os.getenv("ANKI_BACKEND_IMPORT_EXPORT"):
|
if KeyboardModifiersPressed().shift:
|
||||||
ExportDialog(self, did=did)
|
ExportDialog(self, did=did)
|
||||||
else:
|
else:
|
||||||
aqt.exporting.ExportDialog(self, did=did)
|
aqt.exporting.ExportDialog(self, did=did)
|
||||||
|
|
Loading…
Reference in a new issue