-
-
Notifications
You must be signed in to change notification settings - Fork 299
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
UX: use only one option for settings window #1122
Conversation
I think it's still handy to have the options immediately available. Perhaps a submenu or something could clarify behavior while maintaining the quick access options? |
@antangelo can you expand on your suggestion? Maybe I'm misunderstanding, but given that launching into the general page provides the full list of subpages on the left it seems to me that it's roughly equivalent to a submenu (except in the case where you actually want general settings, in which case it saves a step). |
the changes i made make sure that we keep track of the last visited window when exiting and entering back into "Settings", tho if we access Help > About instead of Settings > About, and then we access to Settings, the last value is saved to that window. Let me know if this is not a big issue with the UI design. Also i removed the redundant class functions since we can save now the value of the visited window more generically in one function for "Settings" |
This branch needs to be synced with upstream to resolve conflicts |
a6a9d17
to
edecb41
Compare
Code has been rebased on the lastes xemu version |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the patch. Since it has been confusing for some users, we can make Settings one single option in the menu. Can you simplify the patch and remove unrelated changes
I aborted the modifications that did not regard the actual drop down menu (got confused with the popup menu naming convention). Now we only have the simplified drop-down menu. |
Do you think we should persist the last opened menu tab after xemu restart? This information is already stored in the |
i could reset the index to 0 after the first setup, so if a reboot happens the user will be prompted to the first tab of the settings section. UPDATE: it works if i set to 0 the current_view_index inside the showSystem function, so on next boot you will be prompted to the first window. So tell me if you agree with this approach @antangelo |
I don't think that's quite the same idea that I had. If you were on the snapshots tab, for example, and you close xemu, I think that when you re-open xemu and open settings from the menubar, you should be shown the snapshots tab again. |
The current behavior is this: if the user doesn't move from the settings tab and just restarts it is prompted to the General tab. But if the user moves, on next boot it will be prompted to the last selected window, because the This basically means: -On first boot, press settings from -On next boots or if i move in tabs during first boot: call The index = 0 thing is not in the code yet |
It keeps track of the visited window within a session, but in my testing if I close xemu and re-open it, the general tab is always shown (regardless of what I had open before). |
are you writing the index assignation into |
I have not modified the code, I just checked out the branch as-is |
oh, well as i said the modification is not here yet. I have to write it now |
I have no idea what that change is supposed to do, or what issue you're trying to address. Whatever you're trying to fix seems to be completely independent from the suggestion I made. |
i'm not understanding what's the problem that you're experiencing. I thought the trouble was that after the welcome setup, the user was always redirected to the general tab when opening settings again, so i made it that if the user moves in the tabs after the first setup on next boot it would find himself on the last viewed tab, if he doesn't move he's redirected to general tab. But then again if this is not the issue show me what would you like to do, visually or in code |
I haven't noticed any issues with the welcome flow both with and without your latest change, the system button should always show the system page in that case. |
understood, will try to fix it |
4316ad2
to
18baa7b
Compare
OK so the idea i had is to write the last viewed window index into xemu.toml, and then read it when the user boots xemu and initialize the index again to the last visited window. I need some help in understanding how to write to the toml file |
The last viewed tab is already stored in the config for you as |
yeah i found it, is it ok if the function becomes like this? it does keep track of the last visited window on next boots, but i don't know if it's ok enough to assign the value each time showsettings is called. It would make sense if current_index had no value at boot but it is already initialized to 0. so if the index was set to NULL i could do:
Current code:
|
You don't need to assign |
done it, thanks for the suggestion, let me know if there is anything else to do |
Is this PR now ready for review or is it still in development? |
* ui: Use only one option for settings window (xemu-project#1122) * rebase code * remove unsused item * restore "system" displaying on first boot * restore popup menu functions (separate commit) * restore snapshot function in popup menu * get current index value from config file * ui: Warn user about no output when AV Pack set to "None" --------- Co-authored-by: Fabx <[email protected]>
…ect#1315)" This reverts commit 03f40b1. Revert "ui: Warn user about no output when AV Pack set to "None"" This reverts commit 800eb46. Revert "ui: Use only one option for settings window (xemu-project#1122)" This reverts commit b605381.
…ect#1315)" This reverts commit 03f40b1. Revert "ui: Warn user about no output when AV Pack set to "None"" This reverts commit 800eb46. Revert "ui: Use only one option for settings window (xemu-project#1122)" This reverts commit b605381.
Fixes: #1059
showcase.mp4