GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — ApplicationList: Reset app menu screen when loading watch face by vkareh · Pull Request #2009 · InfiniTimeOrg/InfiniTime

Conversation

@vkareh

@vkareh vkareh commented Feb 9, 2024

Copy link
Copy Markdown
Contributor

This prevents the application list from loading in the last used screen and instead goes back to the first screen whenever the watch face is loaded.

Fixes #2006

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

minacode and JustScott reacted with thumbs up emoji
All reactions
  • 👍 2 reactions
@github-actions

github-actions Bot commented Feb 9, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Build size and comparison to main:

Section Size Difference
text 377096B 16B
data 940B 0B
bss 63516B 0B
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@vkareh vkareh mentioned this pull request Feb 9, 2024
App menu stays at second screen #2006
Closed
1 task done
@JF002

JF002 commented Feb 11, 2024

Copy link
Copy Markdown
Collaborator

Have you checked why the page number of the launcher is actually stored? I wouldn't want to apply a change that conflicts with the original intend of the code.

I think it would also be a good idea to check that the behavior reported in #2006 does not happen for other apps as well, like settings for example (that you can open with a double press on the button iirc)? Maybe the fix should be more generic than it currently is?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@vkareh
vkareh force-pushed the reset-app-menu branch 2 times, most recently from 39c37f1 to 842bcae Compare February 12, 2024 15:19
@vkareh

vkareh commented Feb 12, 2024

Copy link
Copy Markdown
Contributor Author

Have you checked why the page number of the launcher is actually stored? I wouldn't want to apply a change that conflicts with the original intend of the code.

Yes. It was added as part of #217 with the description:

  • Go back to the same menu page when we leave an app

This behaviour is preserved, as we only reset the page when we're not in an app.

I think it would also be a good idea to check that the behavior reported in #2006 does not happen for other apps as well, like settings for example (that you can open with a double press on the button iirc)? Maybe the fix should be more generic than it currently is?

This issue doesn't happen in the settings, since we don't store the current screen there.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@vkareh
vkareh force-pushed the reset-app-menu branch from 842bcae to 923d5d1 Compare February 14, 2024 18:39
@FintasticMan

FintasticMan commented Feb 14, 2024

Copy link
Copy Markdown
Member

Git bisect says the bug was introduced in 39bc166. There was no call to SetAppMenu removed in that commit... Why didn't the bug occur before?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@vkareh
ApplicationList: Reset app menu screen when loading watch face
4742403
This prevents the application list from loading in the last used screen
and instead goes back to the first screen whenever the watch face is
loaded.

Fixes InfiniTimeOrg#2006
@vkareh
vkareh force-pushed the reset-app-menu branch from 923d5d1 to 4742403 Compare February 19, 2024 01:10
@JF002

JF002 commented Mar 12, 2024

Copy link
Copy Markdown
Collaborator

Git bisect says the bug was introduced in 39bc166. There was no call to SetAppMenu removed in that commit... Why didn't the bug occur before?

The call to Settings::SetAppMenu() was done in the ctor of the Clock class, which was removed in this 39bc166 commit!

And I think the @vkareh found a better place for this in DisplayApp so that watch faces do not have to manage this state.

FintasticMan reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@JF002 JF002 added this to the 1.15.0 milestone Mar 12, 2024
JF002
JF002 approved these changes Mar 12, 2024
View reviewed changes
@JF002
JF002 merged commit 3b4b5a5 into InfiniTimeOrg:main Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@JF002 JF002 JF002 approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

1.15.0

Development

Successfully merging this pull request may close these issues.

App menu stays at second screen

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@vkareh @JF002 @FintasticMan
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.