45
45
open-direction =" top"
46
46
:show-labels =" false"
47
47
/>
48
- <Checkbox
49
- v-if =" showAdvanced"
50
- v-model =" showSnapshots"
51
- class =" filter-checkbox"
52
- label =" Include snapshots"
53
- />
48
+ <Checkbox v-model =" showSnapshots" class =" filter-checkbox" label =" Show all versions" />
54
49
</div >
55
50
</div >
56
- <div v-if =" showAdvanced && loader !== 'vanilla'" class =" input-row" >
51
+ <div v-if =" loader !== 'vanilla'" class =" input-row" >
57
52
<p class =" input-label" >Loader version</p >
58
53
<Chips v-model =" loader_version" :items =" ['stable', 'latest', 'other']" />
59
54
</div >
60
- <div v-if =" showAdvanced && loader_version === 'other' && loader !== 'vanilla'" >
55
+ <div v-if =" loader_version === 'other' && loader !== 'vanilla'" >
61
56
<div v-if =" game_version" class =" input-row" >
62
57
<p class =" input-label" >Select version</p >
63
58
<multiselect
75
70
</div >
76
71
</div >
77
72
<div class =" input-group push-right" >
78
- <Button @click =" toggle_advanced" >
79
- <CodeIcon />
80
- {{ showAdvanced ? 'Hide advanced' : 'Show advanced' }}
81
- </Button >
82
73
<Button @click =" hide()" >
83
74
<XIcon />
84
75
Cancel
198
189
199
190
<script setup>
200
191
import {
201
- CodeIcon ,
202
192
FolderOpenIcon ,
203
193
FolderSearchIcon ,
204
194
InfoIcon ,
@@ -236,7 +226,6 @@ const loader_version = ref('stable')
236
226
const specified_loader_version = ref (' ' )
237
227
const icon = ref (null )
238
228
const display_icon = ref (null )
239
- const showAdvanced = ref (false )
240
229
const creating = ref (false )
241
230
const showSnapshots = ref (false )
242
231
const creationType = ref (' custom' )
@@ -248,7 +237,6 @@ defineExpose({
248
237
specified_loader_version .value = ' '
249
238
profile_name .value = ' '
250
239
creating .value = false
251
- showAdvanced .value = false
252
240
showSnapshots .value = false
253
241
loader .value = ' vanilla'
254
242
loader_version .value = ' stable'
@@ -417,10 +405,6 @@ const selectable_versions = computed(() => {
417
405
return []
418
406
})
419
407
420
- const toggle_advanced = () => {
421
- showAdvanced .value = ! showAdvanced .value
422
- }
423
-
424
408
const openFile = async () => {
425
409
const newProject = await open ({ multiple: false })
426
410
if (! newProject) return
0 commit comments