mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
Scroll media sync log to the last line
This commit is contained in:
parent
17edbd119d
commit
ef1d61e35c
1 changed files with 2 additions and 1 deletions
|
@ -19,7 +19,7 @@ from anki.rsbackend import (
|
||||||
from anki.types import assert_impossible
|
from anki.types import assert_impossible
|
||||||
from anki.utils import intTime
|
from anki.utils import intTime
|
||||||
from aqt import gui_hooks
|
from aqt import gui_hooks
|
||||||
from aqt.qt import QDialog, QDialogButtonBox, QPushButton, QTimer, qconnect
|
from aqt.qt import QDialog, QDialogButtonBox, QPushButton, QTextCursor, QTimer, qconnect
|
||||||
from aqt.utils import showWarning, tr
|
from aqt.utils import showWarning, tr
|
||||||
|
|
||||||
LogEntry = Union[MediaSyncProgress, str]
|
LogEntry = Union[MediaSyncProgress, str]
|
||||||
|
@ -176,6 +176,7 @@ class MediaSyncDialog(QDialog):
|
||||||
self.form.plainTextEdit.setPlainText(
|
self.form.plainTextEdit.setPlainText(
|
||||||
"\n".join(self._entry_to_text(x) for x in syncer.entries())
|
"\n".join(self._entry_to_text(x) for x in syncer.entries())
|
||||||
)
|
)
|
||||||
|
self.form.plainTextEdit.moveCursor(QTextCursor.End)
|
||||||
self.show()
|
self.show()
|
||||||
|
|
||||||
def reject(self) -> None:
|
def reject(self) -> None:
|
||||||
|
|
Loading…
Reference in a new issue