Return question runs to dashboard
This commit is contained in:
+1
-8
@@ -969,15 +969,8 @@ func exit_current_run() -> void:
|
|||||||
if current_screen_name == "flashcards_study":
|
if current_screen_name == "flashcards_study":
|
||||||
show_screen("flashcards_hub")
|
show_screen("flashcards_hub")
|
||||||
return
|
return
|
||||||
var was_core_run := BlockSessionService.session_kind == "core"
|
|
||||||
var was_review_run := BlockSessionService.session_kind == "review"
|
|
||||||
var was_dynamic_run := BlockSessionService.session_kind == "dynamic"
|
|
||||||
if BlockSessionService.block_started and BlockSessionService.session_kind != "simulation":
|
if BlockSessionService.block_started and BlockSessionService.session_kind != "simulation":
|
||||||
BlockSessionService.finish_block()
|
BlockSessionService.finish_block()
|
||||||
elif BlockSessionService.session_kind == "simulation":
|
elif BlockSessionService.session_kind == "simulation":
|
||||||
BlockSessionService.block_started = false
|
BlockSessionService.block_started = false
|
||||||
if was_review_run or was_dynamic_run:
|
show_screen("dashboard")
|
||||||
DashboardService.refresh()
|
|
||||||
show_screen("dashboard")
|
|
||||||
else:
|
|
||||||
show_screen("selection", "exam" if was_core_run else "step3")
|
|
||||||
|
|||||||
Reference in New Issue
Block a user