Return dynamic question runs to dashboard
This commit is contained in:
+3
-1
@@ -939,11 +939,13 @@ func _exit_run() -> void:
|
|||||||
return
|
return
|
||||||
var was_core_run := BlockSessionService.session_kind == "core"
|
var was_core_run := BlockSessionService.session_kind == "core"
|
||||||
var was_review_run := BlockSessionService.session_kind == "review"
|
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:
|
if was_review_run or was_dynamic_run:
|
||||||
|
DashboardService.refresh()
|
||||||
show_screen("dashboard")
|
show_screen("dashboard")
|
||||||
else:
|
else:
|
||||||
show_screen("selection", "exam" if was_core_run else "step3")
|
show_screen("selection", "exam" if was_core_run else "step3")
|
||||||
|
|||||||
@@ -1874,7 +1874,7 @@ func _exit_run() -> void:
|
|||||||
BlockSessionService.finish_block()
|
BlockSessionService.finish_block()
|
||||||
main.show_screen("bookmarks")
|
main.show_screen("bookmarks")
|
||||||
return
|
return
|
||||||
if BlockSessionService.session_kind == "review":
|
if BlockSessionService.session_kind in ["review", "dynamic"]:
|
||||||
BlockSessionService.finish_block()
|
BlockSessionService.finish_block()
|
||||||
DashboardService.refresh()
|
DashboardService.refresh()
|
||||||
main.show_screen("dashboard")
|
main.show_screen("dashboard")
|
||||||
|
|||||||
Reference in New Issue
Block a user