mirror of
https://github.com/LCE-Hub/LCE-Emerald-Launcher.git
synced 2026-09-24 09:03:44 +00:00
feat(settingsview): remove stop game option
This commit is contained in:
@@ -57,8 +57,6 @@ const SettingsView = memo(function SettingsView() {
|
|||||||
const { currentTrack, skipTrack, tracks, playPressSound, playBackSound } =
|
const { currentTrack, skipTrack, tracks, playPressSound, playBackSound } =
|
||||||
useAudio();
|
useAudio();
|
||||||
const {
|
const {
|
||||||
isGameRunning,
|
|
||||||
stopGame,
|
|
||||||
isRunnerDownloading,
|
isRunnerDownloading,
|
||||||
runnerDownloadProgress,
|
runnerDownloadProgress,
|
||||||
downloadRunner,
|
downloadRunner,
|
||||||
@@ -751,16 +749,6 @@ const SettingsView = memo(function SettingsView() {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isGameRunning) {
|
|
||||||
items.push({
|
|
||||||
id: "stop",
|
|
||||||
label: t("settings.stopGameButton"),
|
|
||||||
type: "button",
|
|
||||||
onClick: stopGame,
|
|
||||||
color: "red",
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
items.push({
|
items.push({
|
||||||
id: "back",
|
id: "back",
|
||||||
label: currentSubMenu === "main" ? t("common.done") : t("common.back"),
|
label: currentSubMenu === "main" ? t("common.done") : t("common.back"),
|
||||||
@@ -803,7 +791,6 @@ const SettingsView = memo(function SettingsView() {
|
|||||||
runnerDownloadProgress,
|
runnerDownloadProgress,
|
||||||
isMac,
|
isMac,
|
||||||
perfBoost,
|
perfBoost,
|
||||||
isGameRunning,
|
|
||||||
handleTrackToggle,
|
handleTrackToggle,
|
||||||
handleVfxToggle,
|
handleVfxToggle,
|
||||||
handleRpcToggle,
|
handleRpcToggle,
|
||||||
@@ -814,7 +801,6 @@ const SettingsView = memo(function SettingsView() {
|
|||||||
handleMangohudToggle,
|
handleMangohudToggle,
|
||||||
handleSkipIntroToggle,
|
handleSkipIntroToggle,
|
||||||
handleResetSetup,
|
handleResetSetup,
|
||||||
stopGame,
|
|
||||||
downloadRunner,
|
downloadRunner,
|
||||||
playPressSound,
|
playPressSound,
|
||||||
playBackSound,
|
playBackSound,
|
||||||
|
|||||||
Reference in New Issue
Block a user