Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Offline mode #403

Merged
merged 7 commits into from
Aug 5, 2023
Merged

Offline mode #403

merged 7 commits into from
Aug 5, 2023

Conversation

thesuzerain
Copy link
Contributor

Fixes MOD-462
Fixes #392
Fixes #401

@thesuzerain thesuzerain marked this pull request as ready for review August 1, 2023 15:08
>
<SearchIcon />
</RouterLink>
<div v-if="!offline">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we should hide/unhide buttons if the user is offline or not

theseus_gui/src/pages/Browse.vue Outdated Show resolved Hide resolved
@@ -108,7 +113,7 @@
<template #disable><XIcon />Disable selected</template>
<template #enable><CheckCircleIcon />Enable selected</template>
<template #hide_show><EyeIcon />Show/Hide unselected</template>
<template #update_all
<template #update_all v-if="!offline"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be better to disable items instead of just hiding them

<UpdatedIcon v-if="mod.outdated" />
<CheckIcon v-else />
</Button>
<div v-if="!offline">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here, should be disabled rather than hidden

Comment on lines 303 to 312
// Immediately return to home page if offline
if (offline.value) {
await router.push('/')
}
const unlisten = await offline_listener((e) => {
if (e) {
router.push('/')
}
})

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same comment with search, don't think this is needed- it can just fail

Copy link
Member

@Geometrically Geometrically left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for offline mode, I think it should auto check every 5-10 seconds if the app is offline. I also think the offline indicator should only show if the user is offline. Online is the default state so it doesn't matter much IMO

Copy link
Member

@Geometrically Geometrically left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image
the position seems to be off with this. and the bar isn't hidden anymore.

Also the launcher doesn't seem to start when there is no internet connection.

@Geometrically Geometrically merged commit 6a76811 into master Aug 5, 2023
6 checks passed
@Geometrically Geometrically deleted the offline-mode branch August 5, 2023 02:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Can’t open locally installed Modpacks without Internet Offline Mode won't load
2 participants