Skip to content

Commit

Permalink
Revert "1. 功能更新: 添加Alt+F4强制退出功能设置"
Browse files Browse the repository at this point in the history
This reverts commit a9addf5
  • Loading branch information
Hpero4 committed Oct 21, 2023
1 parent 43dc0fe commit f9cefab
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 21 deletions.
2 changes: 0 additions & 2 deletions app/common/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,6 @@ class Config(QConfig):

lockConfig = ConfigItem("Functions", "LockConfig", False, BoolValidator())

forceDisconnection = ConfigItem("Functions", "ForceDisconnection", False, BoolValidator())

enableCloseToTray = ConfigItem(
"General", "EnableCloseToTray", None, OptionsValidator([None, True, False]))

Expand Down
2 changes: 0 additions & 2 deletions app/common/icons.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ class Icon(FluentIconBase, Enum):
SETTING = 'Setting'
FILTER = 'Filter'
UPDATE = 'Update'
DISCONNECTION = 'Disconnection'
CONNECTION = "Connection"

def path(self, theme=Theme.AUTO):
return f'./app/resource/icons/{self.value}_{getIconColor(theme)}.svg'
1 change: 0 additions & 1 deletion app/resource/icons/Disconnection_black.svg

This file was deleted.

1 change: 0 additions & 1 deletion app/resource/icons/Disconnection_white.svg

This file was deleted.

15 changes: 0 additions & 15 deletions app/view/auxiliary_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,6 @@ def __init__(self, parent=None):
self.tr("Make your game config unchangeable"),
cfg.lockConfig, self.gameGroup)

self.forceDisconnectionCard = SwitchSettingCard(
Icon.DISCONNECTION,
self.tr("Force disconnection (UAC privileges required)"),
self.tr('Press "Alt+F4" to exit LOL immediately, no wait.'),
cfg.forceDisconnection, self.gameGroup)

self.createPracticeLobbyCard = CreatePracticeLobbyCard(
self.tr("Create 5v5 practice lobby"),
self.tr("Only bots can be added to the lobby"),
Expand All @@ -77,11 +71,6 @@ def __init__(self, parent=None):
"Accept match making automatically after the number of seconds you set"),
cfg.enableAutoAcceptMatching, cfg.autoAcceptMatchingDelay,
self.gameGroup)
self.autoReconnectCard = SwitchSettingCard(
Icon.CONNECTION,
self.tr("Auto reconnect"),
self.tr("Automatically reconnect when disconnected"),
cfg.enableAutoReconnect, self.gameGroup)
self.spectateCard = SpectateCard(
self.tr("Spectate"),
self.tr("Spectate live game of summoner in the same environment"),
Expand Down Expand Up @@ -126,14 +115,12 @@ def __initLayout(self):

# 游戏
self.gameGroup.addSettingCard(self.autoAcceptMatchingCard)
self.gameGroup.addSettingCard(self.autoReconnectCard)
self.gameGroup.addSettingCard(self.autoSelectChampionCard)
# self.gameGroup.addSettingCard(self.copyPlayersInfoCard)
self.gameGroup.addSettingCard(self.createPracticeLobbyCard)
self.gameGroup.addSettingCard(self.spectateCard)
# self.gameGroup.addSettingCard(self.dodgeCard)
self.gameGroup.addSettingCard(self.lockConfigCard)
self.gameGroup.addSettingCard(self.forceDisconnectionCard)

self.expandLayout.setSpacing(30)
self.expandLayout.setContentsMargins(36, 0, 36, 0)
Expand Down Expand Up @@ -176,8 +163,6 @@ def setEnabled(self, a0: bool) -> None:
self.autoSelectChampionCard.switchButton.setEnabled(True)

self.lockConfigCard.setEnabled(a0)
self.forceDisconnectionCard.setEnabled(a0)
self.autoReconnectCard.setEnabled(a0)

return super().setEnabled(a0)

Expand Down

0 comments on commit f9cefab

Please sign in to comment.