Open the practice Customize page again
The Customize page closed itself on its first frame because it treated any drawn title bar as a press of Back. It now closes only when Back is pressed, and its title bar shows the Back button again.
This commit is contained in:
1 parent
c1792adae5
commit
f2d24b167d
1 file changed
+9
-2
@@ -160,10 +160,17 @@ practice_screen_handle_config_title :: (app: *InnerBreeze, title: string, modal_
|
||||
return 0
|
||||
}
|
||||
title_h = ifx (practice_screen_subscreen_integrated(app, modal_type) != 0) then (app_content_top_reserved(app)) else (AppTitleBarHeight())
|
||||
title_result := TitleBar(CurrentApp().ui.session, TitleBarProps.{.title = title, .height = title_h}, empty_title_options())
|
||||
if title_result.node < 0 {
|
||||
// The page closes only when its back action is pressed.
|
||||
bar: TitleBarProps
|
||||
bar.title = title
|
||||
bar.height = title_h
|
||||
bar.has_leading_action = true
|
||||
bar.leading_label = LocaleText("back_button")
|
||||
title_result := TitleBar(CurrentApp().ui.session, bar, empty_title_options())
|
||||
if !title_result.clicked_leading {
|
||||
return 0
|
||||
}
|
||||
app_block_current_click(app)
|
||||
if app.modal.active != 0 && cast(s32)app.modal.type == modal_type {
|
||||
app_close_modal(app)
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user