Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/ui/tea/panll_gui.affine
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ enum Msg {
* Initial state: PaneW (Task Barycentre) with no history.
*/
fn panll_init() -> Model {
{
#{
current_pane: PanLLPane::PaneW,
history_depth: 0
}
Expand All @@ -58,7 +58,7 @@ fn panll_update(@linear msg: Msg, @linear model: Model) -> Model {
match msg {
Navigate(new_pane) => {
// Consume old model, produce new model with incremented history depth
{
#{
current_pane: new_pane,
history_depth: h + 1
}
Expand All @@ -67,13 +67,13 @@ fn panll_update(@linear msg: Msg, @linear model: Model) -> Model {
PopState => {
if h > 0 {
// Return to PaneW if stack has items
{
#{
current_pane: PanLLPane::PaneW,
history_depth: h - 1
}
} else {
// No-op transition: return model as-is
{
#{
current_pane: c,
history_depth: 0
}
Expand Down
Loading