Skip to content

Commit

Permalink
Been bothered with the menu
Browse files Browse the repository at this point in the history
The items on the Menu apply to more then just a folder, they can apply to an archive as well. There is no reason to have "install Last" for example as something unique to a folder. It simply makes it install after the "==Last==" marker. You wouldn't need to make a folder to do that to a simple zip file.

I don't like the idea of needing all this submenus but if you want the context menu a bit shorter this is at least make more sense.
  • Loading branch information
Sharlikran committed Dec 28, 2019
1 parent 6a44ba5 commit 3f0d9c1
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions Mopy/bash/basher/links.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,9 +298,20 @@ def InitInstallerLinks():
openAtMenu.links.append(Installer_OpenTESA())
InstallersList.itemMenu.append(openAtMenu)
#--Install, uninstall, etc.
InstallersList.itemMenu.append(Installer_OpenReadme())
InstallersList.itemMenu.append(Installer_Anneal())
InstallersList.itemMenu.append(Installer_Install())
InstallersList.itemMenu.append(Installer_Fomod())
InstallersList.itemMenu.append(Installer_Refresh())
InstallersList.itemMenu.append(
Installer_Refresh(calculate_projects_crc=False))
InstallersList.itemMenu.append(Installer_Move())
InstallersList.itemMenu.append(SeparatorLink())
if True: #--Package Menu
installMenu = MenuLink(_(u"Install.."))
installMenu.links.append(Installer_ListStructure())
installMenu.links.append(Installer_Install())
installMenu.links.append(Installer_Install('LAST'))
installMenu.links.append(Installer_Fomod())
InstallersList.itemMenu.append(installMenu)
if bEnableWizard:
wizardMenu = MenuLink(_(u"Wizard Installer.."))
wizardMenu.links.append(Installer_Wizard(False))
Expand All @@ -310,24 +321,17 @@ def InitInstallerLinks():
InstallersList.itemMenu.append(Installer_Install('MISSING'))
InstallersList.itemMenu.append(Installer_Uninstall())
InstallersList.itemMenu.append(SeparatorLink())
InstallersList.itemMenu.append(
Installer_Refresh(calculate_projects_crc=False))
if True: #--Package Menu
packageMenu = MenuLink(_(u"Package.."))
packageMenu.links.append(Installer_OpenReadme())
packageMenu.links.append(Installer_Move())
packageMenu.links.append(Installer_Refresh())
packageMenu.links.append(Installer_ListStructure())
if bush.game.has_achlist:
InstallersList.itemMenu.append(Installer_ExportAchlist())
packageMenu.links.append(Installer_ExportAchlist())
packageMenu.links.append(SeparatorLink())
packageMenu.links.append(InstallerProject_Pack())
packageMenu.links.append(InstallerProject_ReleasePack())
packageMenu.links.append(SeparatorLink())
packageMenu.links.append(InstallerProject_Sync())
packageMenu.links.append(InstallerArchive_Unpack())
packageMenu.links.append(Installer_CopyConflicts())
packageMenu.links.append(Installer_Install('LAST'))
InstallersList.itemMenu.append(packageMenu)
#--Build
if True: #--BAIN Conversion
Expand Down

0 comments on commit 3f0d9c1

Please sign in to comment.