From 66267a9f2ca573844441c0de6a235bc69adffe88 Mon Sep 17 00:00:00 2001 From: flourishalice <182551059+flourishalice@users.noreply.github.com> Date: Tue, 24 Sep 2024 03:24:00 +0900 Subject: [PATCH] Added Toggle Find My Friends --- gui/main_window.py | 3 +++ qt/ui_mainwindow.py | 6 ++++++ tweaks/tweaks.py | 1 + 3 files changed, 10 insertions(+) diff --git a/gui/main_window.py b/gui/main_window.py index 8719229..2429e33 100644 --- a/gui/main_window.py +++ b/gui/main_window.py @@ -98,6 +98,7 @@ def __init__(self, device_manager: DeviceManager): self.ui.stageManagerChk.clicked.connect(self.on_stageManagerChk_clicked) self.ui.ipadAppsChk.clicked.connect(self.on_ipadAppsChk_clicked) self.ui.shutterChk.clicked.connect(self.on_shutterChk_clicked) + self.ui.findMyFriendsChk.clicked.connect(self.on_findMyFriendsChk_clicked) self.ui.pencilChk.clicked.connect(self.on_pencilChk_clicked) self.ui.actionButtonChk.clicked.connect(self.on_actionButtonChk_clicked) @@ -318,6 +319,8 @@ def on_ipadAppsChk_clicked(self, checked: bool): def on_shutterChk_clicked(self, checked: bool): # TODO: allow the user to select the region tweaks["Shutter"].set_enabled(checked) + def on_findMyFriendsChk_clicked(self, checked: bool): + tweaks["FindMyFriends"].set_enabled(checked) def on_pencilChk_clicked(self, checked: bool): tweaks["Pencil"].set_enabled(checked) def on_actionButtonChk_clicked(self, checked: bool): diff --git a/qt/ui_mainwindow.py b/qt/ui_mainwindow.py index 46cc26f..b215989 100644 --- a/qt/ui_mainwindow.py +++ b/qt/ui_mainwindow.py @@ -1417,6 +1417,11 @@ def setupUi(self, Nugget): self.verticalLayout_8.addWidget(self.shutterChk) + self.findMyFriendsChk = QCheckBox(self.gestaltPageContent) + self.findMyFriendsChk.setObjectName(u"findMyFriendsChk") + + self.verticalLayout_8.addWidget(self.findMyFriendsChk) + self.pencilChk = QCheckBox(self.gestaltPageContent) self.pencilChk.setObjectName(u"pencilChk") @@ -2192,6 +2197,7 @@ def retranslateUi(self, Nugget): self.stageManagerChk.setText(QCoreApplication.translate("Nugget", u"Enable Stage Manager Supported (WARNING: risky on some devices, mainly phones)", None)) self.ipadAppsChk.setText(QCoreApplication.translate("Nugget", u"Allow iPad Apps on iPhone", None)) self.shutterChk.setText(QCoreApplication.translate("Nugget", u"Disable Region Restrictions (ie. Shutter Sound)", None)) + self.findMyFriendsChk.setText(QCoreApplication.translate("Nugget", u"Enable Find My Friends", None)) self.pencilChk.setText(QCoreApplication.translate("Nugget", u"Enable Apple Pencil Settings Tab", None)) self.actionButtonChk.setText(QCoreApplication.translate("Nugget", u"Enable Action Button Settings Tab", None)) self.internalInstallChk.setText(QCoreApplication.translate("Nugget", u"Set as Apple Internal Install (ie Metal HUD in any app)", None)) diff --git a/tweaks/tweaks.py b/tweaks/tweaks.py index 0b98cc3..396a0a0 100644 --- a/tweaks/tweaks.py +++ b/tweaks/tweaks.py @@ -17,6 +17,7 @@ "StageManager": MobileGestaltTweak("Toggle Stage Manager Supported (WARNING: risky on some devices, mainly phones)", "qeaj75wk3HF4DwQ8qbIi7g", value=1), "iPadApps": MobileGestaltTweak("Allow iPad Apps on iPhone", "9MZ5AdH43csAUajl/dU+IQ", value=[1, 2]), "Shutter": MobileGestaltMultiTweak("Disable Region Restrictions (ie. Shutter Sound)", {"h63QSdBCiT/z0WU6rdQv6Q": "US", "zHeENZu+wbg7PUprwNwBWg": "LL/A"}), + "FindMyFriends": MobileGestaltTweak("Toggle Find My Friends", "Y2Y67z0Nq/XdDXgW2EeaVg"), "Pencil": MobileGestaltTweak("Toggle Apple Pencil", "yhHcB0iH0d1XzPO/CFd3ow"), "ActionButton": MobileGestaltTweak("Toggle Action Button", "cT44WE1EohiwRzhsZ8xEsw"), "InternalStorage": MobileGestaltTweak("Toggle Internal Storage (WARNING: risky for some devices, mainly iPads)", "LBJfwOEzExRxzlAnSuI7eg"),