diff --git a/src/app/Installs.css b/src/app/Installs.css
index ab448c1..1ad2404 100644
--- a/src/app/Installs.css
+++ b/src/app/Installs.css
@@ -9,5 +9,5 @@
}
.downloads-entry {
- @apply flex justify-between items-center m-2 p-2 rounded-lg text-gray-200 text-lg transition-colors bg-(--col2) hover:bg-(--col3) border border-(--col4) hover:border-(--col5);
+ @apply flex justify-between items-center m-2 p-2 rounded-lg text-gray-200 text-lg transition-colors bg-(--col2) hover:bg-(--col3) border border-(--col4) hover:border-(--col5) cursor-pointer;
}
diff --git a/src/app/game/page.tsx b/src/app/game/page.tsx
index 7b38c92..99782aa 100644
--- a/src/app/game/page.tsx
+++ b/src/app/game/page.tsx
@@ -8,7 +8,7 @@ import { useSearchParams } from 'next/navigation'
import { platform } from '@tauri-apps/plugin-os'
import { faWarning } from '@fortawesome/free-solid-svg-icons'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
-import { ask } from '@tauri-apps/plugin-dialog'
+import { ask, message } from '@tauri-apps/plugin-dialog'
import { BaseDirectory, exists, remove } from '@tauri-apps/plugin-fs'
import { writeVersionsConfig } from '../util/BazookaManager'
@@ -20,7 +20,6 @@ export default function Installs () {
setFadeOut,
setSelectedVersionList,
downloadedVersionsConfig,
- downloadProgress,
normalConfig,
setManagingVersion,
getVersionInfo,
@@ -123,21 +122,9 @@ export default function Installs () {
return (
{
- if (normalConfig?.settings.useLegacyInteractButtons)
- return
- setCategory(Number(key))
- }}
+ className={'downloads-entry'}
+ title={'Click to view category'}
+ onClick={() => setCategory(Number(key))}
>
{value}
@@ -171,17 +158,6 @@ export default function Installs () {
})()}
-
-
)
@@ -217,33 +193,23 @@ export default function Installs () {
.map(entry => (
{
if (
- normalConfig?.settings.useLegacyInteractButtons ||
needsRevisionUpdate(
getVersionInfo(entry)?.lastRevision,
entry
)
- )
+ ) {
+ await message(
+ "Can't launch game. Need revision update.",
+ { title: 'Error launching game', kind: 'error' }
+ )
return
+ }
const verInfo = getVersionInfo(entry)
if (verInfo == undefined) return
const gameInfo = getGameInfo(verInfo.game)
@@ -262,15 +228,6 @@ export default function Installs () {
}}
onContextMenu={e => {
e.preventDefault()
- if (
- normalConfig?.settings.useLegacyInteractButtons ||
- needsRevisionUpdate(
- getVersionInfo(entry)?.lastRevision,
- entry
- )
- )
- return
-
setManagingVersion(entry)
setPopupMode(2)
setShowPopup(true)
@@ -346,58 +303,6 @@ export default function Installs () {
>
View Info
-
-
-
- {
- setCategory(-1)
- router.push('/game?id=' + i.id)
- }}
- >
- Installs
-
))
diff --git a/src/app/settings/page.tsx b/src/app/settings/page.tsx
index dd6e125..dc8322f 100644
--- a/src/app/settings/page.tsx
+++ b/src/app/settings/page.tsx
@@ -11,8 +11,6 @@ export default function Settings () {
const [allowNotifications, setAllowNotifications] = useState(false)
const [alwaysShowGamesInSidebar, setAlwaysShowGamesInSidebar] =
useState(false)
- const [useLegacyInteractButtons, setUseLegacyInteractButtons] =
- useState(false)
const [useWineOnUnixWhenNeeded, setUseWineOnUnixWhenNeeded] = useState(false)
const [wineOnUnixCommand, setWineOnUnixCommand] = useState('wine %path%')
const [theme, setTheme] = useState(0)
@@ -27,9 +25,6 @@ export default function Settings () {
setAlwaysShowGamesInSidebar(
normalConfig.settings.alwaysShowGamesInSidebar
)
- setUseLegacyInteractButtons(
- normalConfig.settings.useLegacyInteractButtons
- )
setUseWineOnUnixWhenNeeded(
normalConfig.settings.useWineOnUnixWhenNeeded
)
@@ -92,29 +87,6 @@ export default function Settings () {
}}
title="This setting will make it so when you are on a page like this, the games won't disappear."
/>
- {
- if (!normalConfig) return
- setUseLegacyInteractButtons(!useLegacyInteractButtons)
- setNormalConfig({
- ...normalConfig,
- settings: {
- ...normalConfig.settings,
- useLegacyInteractButtons: !useLegacyInteractButtons
- }
- })
- await writeNormalConfig({
- ...normalConfig,
- settings: {
- ...normalConfig.settings,
- useLegacyInteractButtons: !useLegacyInteractButtons
- }
- })
- }}
- title='Enable the legacy method of using the installs/launch/manage buttons. In the future this setting may be removed so try and get used to the new method.'
- />