Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added manual flip state storage feature to retain the last selected o… #42

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Carlo579
Copy link

This is a feature enhancement for storing and managing the manual flip selection state and making the toggle rotation on/off functionality more seamless/intuitive.

High Level Use Cases Supported by This Enhancement:

  1. On first launch it will load the default value of the last orientation flipped to from settings and will be the default from the schema XML
  2. When the quick setting button is pushed it will used the last orientation pulled from settings
  3. The quick setting button menu will show the last orientation as checked letting the user know what orientation will be enabled by the button
  4. When the user selects a quick setting button menu item, it will switch to that orientation, store the orientation for the next toggle on/off cycle, and store the last orientation in settings to maintain the state selection across restarts.

Note: all of the above assumes the manual flip quick settings button is enabled in preferences to start

…rientation for when the manual flip indicator is activated
@shyzus shyzus self-requested a review October 27, 2024 10:21
@shyzus shyzus added the enhancement New feature or request label Oct 27, 2024
@shyzus
Copy link
Owner

shyzus commented Oct 27, 2024

Hi @Carlo579 thanks for sending in your pull request.

In regards to the proposed enhancement I can see the benefit it may offer to some users. Would like to see this enhancement merged. However from my brief testing with the changes in this pull request, it seems to break one thing and degrade the experience for another set of users being the mobile/tablet users.

When using the extension with these changes the rotate quicktoggle no longer defaults to switching between landscape and portrait. This is something people with a mobile/tablet that use this extension prefer to quickly and effectively switch between orientations.

With these changes it defaults to the last stored orientation it was set to. This also results in the button itself becoming useless if you use the drop down menu to switch to landscape and then click on the rotate button again.

I believe this enhancement may best be implemented with the addition of a single toggle in the extension preferences that changes the default behaviour of the rotate quicktoggle. From what mobile/tablet users expect to using the last stored orientation.

This still leaves the issue of the rotate quicktoggle becoming useless if the last stored orientation and the current orientation are the exact same.

I look forward to future changes you make to this pull request.

@shyzus shyzus removed their request for review October 27, 2024 11:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants