Skip to content

Commit

Permalink
refactor: clean up & fix java dialog behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
ci010 committed Jan 5, 2022
1 parent c33d9b4 commit 0a8dc82
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 6 deletions.
1 change: 0 additions & 1 deletion src/renderer/hooks/useSyncable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ export function useSyncable(store: Store<any>) {
} = syncInfo
console.log(`Synced ${length} commits.`)

console.log(state)
store.commit('sync', state)
lastId = length
syncing.value = false
Expand Down
3 changes: 1 addition & 2 deletions src/renderer/windows/main/dialog/BaseJavaWizardDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,7 @@ export default defineComponent({
subscribeTask(editInstance({ java: validJava.value!.path }), $t('java.modifyInstance'))
isShown.value = false
} else if (index === 1) {
await installDefaultJava(javaIssue.value.version)
subscribeTask(installDefaultJava(javaIssue.value.version), $t('java.modifyInstance'))
isShown.value = false
} else if (index === 2) {
const { filePaths, canceled } = await showOpenDialog({
Expand Down
1 change: 0 additions & 1 deletion src/renderer/windows/main/pages/instances/InstanceCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,6 @@ export default defineComponent({
return status.value.favicon
}
const banner = getBanner(props.instance.runtime.minecraft)
console.log(banner)
if (banner) {
return banner
}
Expand Down
2 changes: 0 additions & 2 deletions src/renderer/windows/main/pages/instances/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,6 @@ export default defineComponent({
const { push } = useRouter()
const { text: filter } = useSearch()
console.log(instances.value)
const filterElem = ref(null) as Ref<any>
const filteredInstance = computed(() => {
Expand Down

0 comments on commit 0a8dc82

Please sign in to comment.