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":
|
||||
show_screen("flashcards_hub")
|
||||
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":
|
||||
BlockSessionService.finish_block()
|
||||
elif BlockSessionService.session_kind == "simulation":
|
||||
BlockSessionService.block_started = false
|
||||
if was_review_run or was_dynamic_run:
|
||||
DashboardService.refresh()
|
||||
show_screen("dashboard")
|
||||
else:
|
||||
show_screen("selection", "exam" if was_core_run else "step3")
|
||||
show_screen("dashboard")
|
||||
|
||||
Reference in New Issue
Block a user