Skip to content

- Added submenus for the Links. #285

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

Merged
merged 4 commits into from
Mar 17, 2025
Merged

Conversation

VisionR1
Copy link
Contributor

  • Added submenus for the Links.

Since, PixelFlasher is the most useful and know tool for all, i think for lot users (demanding) need more details, so i have create submenus (XDA and GitHub) with a few more links for useful threads, with the already existing icons.

- Added submenu for the Links.

Since, PixelFlasher is the most useful and know tool for all, i think for lot users (demanding) need more details, so i have create submenu (XDA and GitHub) with a few more links for useful threads, with the already existing icons.
@badabing2005
Copy link
Owner

Thanks for the PR.
I don't mind adding the XDA links, but the Github links I think there's no point.
The app goes one step further, and it allows you install any of those modules.

image

@VisionR1
Copy link
Contributor Author

VisionR1 commented Mar 16, 2025

Thanks for the PR. I don't mind adding the XDA links, but the Github links I think there's no point. The app goes one step further, and it allows you install any of those modules.

image

I didn't add the links for the GitHub, you had it already inside in the Main.py, I only added the links for XDA.
IMG_20250316_225004

i just put it in submenu, to be more organized.
IMG_20250316_225622

@badabing2005
Copy link
Owner

Right, thanks for pointing out.
Here's what I suggest, let's keep then under the links submenu, which is already a submenu of Help
Too many nested menus could be a usability issue.
Let's change the icons of the Github links to Github, to be differentiator.
Say goes for the XDA sub-menu
If you want to do it, go for it, otherwise, I'll take care of it.

Thanks

@VisionR1
Copy link
Contributor Author

Right, thanks for pointing out. Here's what I suggest, let's keep then under the links submenu, which is already a submenu of Help Too many nested menus could be a usability issue. Let's change the icons of the Github links to Github, to be differentiator. Say goes for the XDA sub-menu If you want to do it, go for it, otherwise, I'll take care of it.

Thanks

In short, as you originally had it.
So put back the GitHub links to main and and put the proper icons ? Remove the XDA submenu and keep the XDA links to main or remove and the links?

@badabing2005
Copy link
Owner

No don't remove XDA links, just put them under
Help | Links
Like all the links.
Github links would have the Github icon
Guides would keep the ? icon like they have now
Links would keep links icon like the have now
New XDA threads would have the XDA icon
The new XDA threads would also have a grouping separator line

@VisionR1
Copy link
Contributor Author

VisionR1 commented Mar 16, 2025

No don't remove XDA links, just put them under Help | Links Like all the links. Github links would have the Github icon Guides would keep the ? icon like they have now Links would keep links icon like the have now New XDA threads would have the XDA icon The new XDA threads would also have a grouping separator line

Exactly.
i will do it tomorrow. 👍🏻

You want new PR, or make all the changes to this?

@VisionR1
Copy link
Contributor Author

@badabing2005
This project https://github.com/TheFreeman193/PIFS is abonted, you want me to remove it or keep it?

@badabing2005
Copy link
Owner

Sure why not

@VisionR1
Copy link
Contributor Author

VisionR1 commented Mar 17, 2025

Sure why not

I asked, maybe you still want it for the info.

Done. 👍🏻
PixelFlasher

- Delete submenu (XDA and GitHub).
- XDA new Links.
- Proper icons for GitHub and XDA Links.
- Remove https://github.com/TheFreeman193/PIFS because it is abandoned.
Main.py Outdated
self.linksMenuItem6.SetBitmap(images.open_link_24.GetBitmap())
self.linksMenuItem7.SetBitmap(images.open_link_24.GetBitmap())
self.linksMenuItem7.SetBitmap(images.open_link_24.GetBitmap())
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove empty space

Main.py Outdated
self.Bind(wx.EVT_MENU, self._on_link_clicked, self.linksMenuItem1)
self.Bind(wx.EVT_MENU, self._on_link_clicked, self.linksMenuItem2)
self.Bind(wx.EVT_MENU, self._on_link_clicked, self.linksMenuItem3)
self.Bind(wx.EVT_MENU, self._on_link_clicked, self.linksMenuItem4)
self.Bind(wx.EVT_MENU, self._on_link_clicked, self.linksMenuItem5)
self.Bind(wx.EVT_MENU, self._on_link_clicked, self.linksMenuItem6)
self.Bind(wx.EVT_MENU, self._on_link_clicked, self.linksMenuItem7)
self.Bind(wx.EVT_MENU, self._on_link_clicked, self.linksMenuItem7)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove empty space

Main.py Outdated
@@ -1874,48 +1874,55 @@ def _build_menu_bar(self):
# separator
help_menu.AppendSeparator()
# Links Submenu
links = wx.Menu()
links = wx.Menu()
self.linksMenuItem15 = links.Append(wx.ID_ANY, "osm0sis\'s PIF FAQ")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Guides has to be on Top, not XDA links.

self.linksMenuItem11.GetId(): (FACTORY_IMAGES_FOR_WATCH_DEVICES, "Factory Images for Pixel Watches"),
self.linksMenuItem12.GetId(): (FULL_OTA_IMAGES_FOR_BETA, "Full OTA Images for Pixel Beta 15"),
self.linksMenuItem13.GetId(): (FACTORY_IMAGES_FOR_BETA, "Factory Images for Pixel Beta 15"),
self.linksMenuItem14.GetId(): ('https://github.com/5ec1cff/TrickyStore', "5ec1cff's TrickyStore"),
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't hardcode the links in the Main.py
Define them in the constants.py like the others and use the constant instead.

Main.py Outdated
self.linksMenuItem12.GetId(): (FULL_OTA_IMAGES_FOR_BETA, "Full OTA Images for Pixel Beta 15"),
self.linksMenuItem13.GetId(): (FACTORY_IMAGES_FOR_BETA, "Factory Images for Pixel Beta 15"),
self.linksMenuItem14.GetId(): ('https://github.com/5ec1cff/TrickyStore', "5ec1cff's TrickyStore"),
self.linksMenuItem15.GetId(): ('https://xdaforums.com/t/pif-faq.4653307/', "osm0sis's PIF FAQ"),
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't hardcode the links in the Main.py
Define them in the constants.py like the others and use the constant instead.

Main.py Outdated
self.linksMenuItem14.GetId(): ('https://github.com/5ec1cff/TrickyStore', "5ec1cff's TrickyStore"),
self.linksMenuItem15.GetId(): ('https://xdaforums.com/t/pif-faq.4653307/', "osm0sis's PIF FAQ"),
self.linksMenuItem16.GetId(): ('https://xdaforums.com/t/info-play-integrity-api-replacement-for-safetynet.4479337/', "V0latyle\'s PI API Info"),
self.linksMenuItem17.GetId(): ('https://xdaforums.com/t/module-play-integrity-fix-safetynet-fix.4607985/', "chiteroman's PlayIntegrityFix"),
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't hardcode the links in the Main.py
Define them in the constants.py like the others and use the constant instead.

Main.py Outdated
self.linksMenuItem15.GetId(): ('https://xdaforums.com/t/pif-faq.4653307/', "osm0sis's PIF FAQ"),
self.linksMenuItem16.GetId(): ('https://xdaforums.com/t/info-play-integrity-api-replacement-for-safetynet.4479337/', "V0latyle\'s PI API Info"),
self.linksMenuItem17.GetId(): ('https://xdaforums.com/t/module-play-integrity-fix-safetynet-fix.4607985/', "chiteroman's PlayIntegrityFix"),
self.linksMenuItem18.GetId(): ('https://xdaforums.com/t/tricky-store-bootloader-keybox-spoofing.4683446/', "Tricky Store (Support Thread)"),
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't hardcode the links in the Main.py
Define them in the constants.py like the others and use the constant instead.

Main.py Outdated
links = wx.Menu()
links = wx.Menu()
self.linksMenuItem15 = links.Append(wx.ID_ANY, "osm0sis\'s PIF FAQ")
self.linksMenuItem16 = links.Append(wx.ID_ANY, "V0latyle\'s PI API Info")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Guides has to be on Top, not XDA links.

Main.py Outdated
links = wx.Menu()
self.linksMenuItem15 = links.Append(wx.ID_ANY, "osm0sis\'s PIF FAQ")
self.linksMenuItem16 = links.Append(wx.ID_ANY, "V0latyle\'s PI API Info")
self.linksMenuItem17 = links.Append(wx.ID_ANY, "chiteroman\'s PlayIntegrityFix")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Guides has to be on Top, not XDA links.

Main.py Outdated
self.linksMenuItem15 = links.Append(wx.ID_ANY, "osm0sis\'s PIF FAQ")
self.linksMenuItem16 = links.Append(wx.ID_ANY, "V0latyle\'s PI API Info")
self.linksMenuItem17 = links.Append(wx.ID_ANY, "chiteroman\'s PlayIntegrityFix")
self.linksMenuItem18 = links.Append(wx.ID_ANY, "Tricky Store (Support Thread)")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Guides has to be on Top, not XDA links.

@VisionR1
Copy link
Contributor Author

Thanks for all the info.
Still i'm beginner.

Now ?
PixelFlasher

@badabing2005 badabing2005 merged commit 74177f0 into badabing2005:main Mar 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants