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

[TESTERS NEEDED] Improved contextual menu #16038

Merged
merged 40 commits into from
Sep 14, 2024
Merged

[TESTERS NEEDED] Improved contextual menu #16038

merged 40 commits into from
Sep 14, 2024

Conversation

digant73
Copy link
Contributor

@digant73 digant73 commented Sep 3, 2024

Just some improvements on the current contextual menu:

  • added Remove Savestate item on Remove sub-menu
  • created Open Folder sub menu: it collects all the open folder items previously present on the main contextual menu plus the addition of resource folders useful to quickly access files for drag&drop on the RPCS3's github project (e.g. for bug report), such as:
    • savestate
    • captures
    • recording
    • screenshots
  • created Manage Game sub menu: it collects a series of items related to game such as hide, shortcuts creation, game renaming and removal previously present on the main contextual menu
  • improved Remove Disc Game / Remove xxx dialog box (item present on the new Manage Game sub menu) to allow a fast, clean and more safe removal of no more needed contents that can take several GB as zombies on disk without the need to manually access RPCS3's folders and/or configuration files and potentially removing wrong files or folders by mistake:
    • the dialog box allows to control the full removal of game data if the contextual menu is related to a game data type (e.g. PS3 Game Data, HDD Game etc.)

      NOTES:

      1. lock files under dev_hdd0/game/$locks folder are always removed allowing a re-installation of the content from scratch (e.g. installation of game demo included in a content etc.)
      2. removal of multiple Game Data folders is supported
    • the dialog box allows to control the removal of both the game data (as on bullet above) and the Disc Game (removal of the title from games.yml file) if the contextual menu is related to a Disc Game type

      NOTES:

      1. unlike the previous bullet, game data can be managed without the need to enable Game Data item under View->Game Category menu
      2. if the Disc Game is located under the auto-detection games folder then the title is not allowed to be selected for removal (the title will reappear on the list on next game list's page refresh or RPCS3 restart)
    • the dialog box allows to select optional contents for removal such as:

      • caches and custom configs
      • icons and shortcuts (currently, removal of shortcuts on desktop and Start menu are not supported)
      • savestate file
      • capture files
      • recording files
      • screenshots files
    • the dialog box do not allow the removal of game saves, trophies files present under dev_hdd0/home/<xxxxxxxx> folder:

      • they usually take few MB and normally users prefer to maintain them
      • they are already fully managed by RPCS3 by specific windows that you can open from the RPCS3's Manage menu

resolve #15994

disc_game_contextual_menu

disc_game_removal_dialogbox

disc_game_denied_removal_dialogbox

game_data_contextual_menu

game_data_removal_dialogbox

open_folder_sub_menu

remove_sub_menu

@AniLeo AniLeo requested a review from Megamouse September 3, 2024 21:23
@AniLeo AniLeo added the GUI label Sep 3, 2024
digant73 and others added 17 commits September 4, 2024 15:46
Co-authored-by: Megamouse <studienricky89@googlemail.com>
Co-authored-by: Megamouse <studienricky89@googlemail.com>
Co-authored-by: Megamouse <studienricky89@googlemail.com>
Co-authored-by: Megamouse <studienricky89@googlemail.com>
Co-authored-by: Megamouse <studienricky89@googlemail.com>
Co-authored-by: Megamouse <studienricky89@googlemail.com>
Co-authored-by: Megamouse <studienricky89@googlemail.com>
Co-authored-by: Megamouse <studienricky89@googlemail.com>
Co-authored-by: Megamouse <studienricky89@googlemail.com>
Co-authored-by: Megamouse <studienricky89@googlemail.com>
Co-authored-by: Megamouse <studienricky89@googlemail.com>
Co-authored-by: Megamouse <studienricky89@googlemail.com>
Co-authored-by: Megamouse <studienricky89@googlemail.com>
@elad335
Copy link
Contributor

elad335 commented Sep 6, 2024

Can removal of savestates be added to the menu as well? or it already has?

@Megamouse
Copy link
Contributor

It only allows to remove savestates when you remove the game.

@Megamouse
Copy link
Contributor

Please remove all unnecessary changes. There's no need to move the entire code around if all you do is change the location in some menu

@digant73
Copy link
Contributor Author

digant73 commented Sep 8, 2024

Please remove all unnecessary changes. There's no need to move the entire code around if all you do is change the location in some menu

I would do that if the code was still readable but code for Custom Icons' menu was in between the moved menus making the code fragmented. The main part moved is for the new Open Folder menu (not current code)

@Megamouse
Copy link
Contributor

First of all you're not even only moving the code, you're changing it's formatting to something worse.
Second, I don't see how the code is fragmented if you only move the addAction somewhere below.

@Megamouse
Copy link
Contributor

Here we go again...

@digant73
Copy link
Contributor Author

digant73 commented Sep 8, 2024

First of all you're not even only moving the code, you're changing it's formatting to something worse. Second, I don't see how the code is fragmented if you only move the addAction somewhere below.

Good catch. The indentation on connect blocks on the moved and mostly mew code was applied by VS (I have to disable that stupid aid). Now it should be ok

@Megamouse
Copy link
Contributor

First of all you're not even only moving the code, you're changing it's formatting to something worse. Second, I don't see how the code is fragmented if you only move the addAction somewhere below.

Good catch. The indentation on connect blocks on the moved and mostly mew code was applied by VS (I have to disable that stupid aid). Now it should be ok

This isn't really anyone's fault. It's a bug in clangformat. We just usually fix the indentation manually before we commit.

@digant73
Copy link
Contributor Author

digant73 commented Sep 8, 2024

First of all you're not even only moving the code, you're changing it's formatting to something worse. Second, I don't see how the code is fragmented if you only move the addAction somewhere below.

Good catch. The indentation on connect blocks on the moved and mostly mew code was applied by VS (I have to disable that stupid aid). Now it should be ok

This isn't really anyone's fault. It's a bug in clangformat. We just usually fix the indentation manually before we commit.

That is also what I'm doing all the time (manually correct the indentation when it is changed and it differs from the code style used in this project)

@digant73
Copy link
Contributor Author

is there something wrong for the merge?

@Megamouse
Copy link
Contributor

No one has tested it yet

@digant73
Copy link
Contributor Author

digant73 commented Sep 14, 2024

No one has tested it yet

It is fully tested and working from my side. Anyway, I will change the title of the PR asking for testing

@digant73 digant73 changed the title Improved contextual menu [needs testing from community for merge] Improved contextual menu Sep 14, 2024
@Megamouse Megamouse changed the title [needs testing from community for merge] Improved contextual menu [TESTERS NEEDED] Improved contextual menu Sep 14, 2024
@Megamouse Megamouse merged commit d1648dd into RPCS3:master Sep 14, 2024
6 checks passed
@ItsLaguna
Copy link

Would be possible to move the remove disc/hdd game/PS3 game data option to Remove instead of having it under Manage Game? It's counter-intuitive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature request] Some minor changes on game's contextual menu
5 participants