mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
remove AnkiDroid timezone confirmation
By the time this update reaches stable, AnkiDroid 2.15 should already be out.
This commit is contained in:
parent
6ca089c36c
commit
fc2d3ba07c
1 changed files with 1 additions and 10 deletions
|
@ -23,7 +23,7 @@ from aqt.operations.deck import (
|
||||||
from aqt.qt import *
|
from aqt.qt import *
|
||||||
from aqt.sound import av_player
|
from aqt.sound import av_player
|
||||||
from aqt.toolbar import BottomBar
|
from aqt.toolbar import BottomBar
|
||||||
from aqt.utils import askUser, getOnlyText, openLink, shortcut, showInfo, tr
|
from aqt.utils import getOnlyText, openLink, shortcut, showInfo, tr
|
||||||
|
|
||||||
|
|
||||||
class DeckBrowserBottomBar:
|
class DeckBrowserBottomBar:
|
||||||
|
@ -377,14 +377,5 @@ class DeckBrowser:
|
||||||
self.mw.col.modSchema(check=True)
|
self.mw.col.modSchema(check=True)
|
||||||
self.mw.col.upgrade_to_v2_scheduler()
|
self.mw.col.upgrade_to_v2_scheduler()
|
||||||
|
|
||||||
# not translated, as 2.15 should not be too far off
|
|
||||||
if askUser(
|
|
||||||
"Do you use AnkiDroid <= 2.14, or plan to use it in the near future? If unsure, choose No. You can adjust the setting later in the preferences screen.",
|
|
||||||
defaultno=True,
|
|
||||||
):
|
|
||||||
prefs = self.mw.col.get_preferences()
|
|
||||||
prefs.scheduling.new_timezone = False
|
|
||||||
self.mw.col.set_preferences(prefs)
|
|
||||||
|
|
||||||
showInfo(tr.scheduling_update_done())
|
showInfo(tr.scheduling_update_done())
|
||||||
self.refresh()
|
self.refresh()
|
||||||
|
|
Loading…
Reference in a new issue