Skip to content

Commit

Permalink
Merge pull request #248 from ppvnf/patch-13
Browse files Browse the repository at this point in the history
Capitalize Scoop and fix typo
  • Loading branch information
marticliment authored Oct 14, 2022
2 parents 9d3ed29 + 700f266 commit bba8d79
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions wingetui/uiSections.py
Original file line number Diff line number Diff line change
Expand Up @@ -2007,16 +2007,16 @@ def restartElevenClockByLangChange():
print("🟢 Settings tab loaded!")

def scoopAddExtraBucket(self) -> None:
r = QInputDialog.getItem(self, _("Scoop bucket manager"), _("What bucket do you want to add?"), ["main", "extras", "versions", "nirsoft", "php", "nerd-fonts", "nonportable", "java", "games"], 1, editable=False)
r = QInputDialog.getItem(self, _("Scoop bucket manager"), _("Which bucket do you want to add?"), ["main", "extras", "versions", "nirsoft", "php", "nerd-fonts", "nonportable", "java", "games"], 1, editable=False)
if r[1]:
print(r[0])
globals.installersWidget.addItem(PackageInstallerWidget(f"{r[0]} scoop bucket", "custom", customCommand=f"scoop bucket add {r[0]}"))
globals.installersWidget.addItem(PackageInstallerWidget(f"{r[0]} Scoop bucket", "custom", customCommand=f"scoop bucket add {r[0]}"))

def scoopRemoveExtraBucket(self) -> None:
r = QInputDialog.getItem(self, _("Scoop bucket manager"), _("What bucket do you want to remove?"), ["main", "extras", "versions", "nirsoft", "php", "nerd-fonts", "nonportable", "java", "games"], 1, editable=False)
r = QInputDialog.getItem(self, _("Scoop bucket manager"), _("Which bucket do you want to remove?"), ["main", "extras", "versions", "nirsoft", "php", "nerd-fonts", "nonportable", "java", "games"], 1, editable=False)
if r[1]:
print(r[0])
globals.installersWidget.addItem(PackageUninstallerWidget(f"{r[0]} scoop bucket", "custom", customCommand=f"scoop bucket rm {r[0]}"))
globals.installersWidget.addItem(PackageUninstallerWidget(f"{r[0]} Scoop bucket", "custom", customCommand=f"scoop bucket rm {r[0]}"))

def showEvent(self, event: QShowEvent) -> None:
Thread(target=self.announcements.loadAnnouncements, daemon=True, name="Settings: Announce loader").start()
Expand Down

0 comments on commit bba8d79

Please sign in to comment.