This repository was archived by the owner on Dec 18, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed
Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " epherome-beta" ,
33 "private" : true ,
4- "version" : " 1.0.0-2 " ,
4+ "version" : " 1.0.0-3 " ,
55 "type" : " module" ,
66 "scripts" : {
77 "dev" : " vite" ,
Original file line number Diff line number Diff line change 55 "devPath" : " http://localhost:1420" ,
66 "distDir" : " ../dist"
77 },
8- "package" : { "productName" : " Epherome" , "version" : " 1.0.0-2 " },
8+ "package" : { "productName" : " Epherome" , "version" : " 1.0.0-3 " },
99 "tauri" : {
1010 "allowlist" : {
1111 "all" : true ,
Original file line number Diff line number Diff line change 1+ import { useState } from "react" ;
12import Info from "../../components/Info" ;
23import Select from "../../components/Select" ;
34import { MinecraftDownloadProvider } from "../../core/url" ;
45import { t } from "../../intl" ;
56import { cfg } from "../../stores/config" ;
67
78export default function DownloadFragment ( ) {
9+ const [ provider , setProvider ] = useState ( cfg . downloadProvider ) ;
10+
811 return (
912 < div className = "p-3" >
1013 < Info name = { t . settings . downloadProvider } >
1114 < Select
12- value = { cfg . downloadProvider }
15+ value = { provider }
1316 onChange = { ( newValue ) => {
1417 cfg . downloadProvider = newValue as MinecraftDownloadProvider ;
18+ setProvider ( newValue as MinecraftDownloadProvider ) ;
1519 } }
1620 options = { { official : t . official , bmclapi : "BMCLAPI" , mcbbs : "MCBBS" } }
1721 > </ Select >
You can’t perform that action at this time.
0 commit comments