remove AnkiDroid timezone confirmation

By the time this update reaches stable, AnkiDroid 2.15 should already
be out.
This commit is contained in:
Damien Elmes 2021-05-06 18:50:24 +10:00
parent 6ca089c36c
commit fc2d3ba07c

View File

@ -23,7 +23,7 @@ from aqt.operations.deck import (
from aqt.qt import *
from aqt.sound import av_player
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:
@ -377,14 +377,5 @@ class DeckBrowser:
self.mw.col.modSchema(check=True)
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())
self.refresh()