mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-16 09:04:45 +01:00
Small fixes
This commit is contained in:
@@ -120,6 +120,9 @@ export class Main extends React.Component<IProps, IState> {
|
||||
isDownloading: this.props.downloadHandler.getDownloads().filter((d) => d.status !== 'finished')?.length > 0,
|
||||
})
|
||||
}, 1000)
|
||||
|
||||
// Summon the news when loaded since it will not show until click normally
|
||||
NewsSection.showNews()
|
||||
}
|
||||
|
||||
async openExtrasMenu(playGame: () => void) {
|
||||
|
||||
@@ -215,9 +215,9 @@ export default class Downloads extends React.Component<IProps, IState> {
|
||||
<div className="DownloadMenuSection" id="downloadMenuContainerGCFullBuild">
|
||||
<div className="DownloadLabel" id="downloadMenuLabelGCFullBuild">
|
||||
<Tr
|
||||
text={this.state.grasscutter_set ? 'downloads.grasscutter_full_build' : 'downloads.grasscutter_full_build_update'}
|
||||
text={this.state.grasscutter_set ? 'downloads.grasscutter_fullbuild' : 'downloads.grasscutter_fullbuild_update'}
|
||||
/>
|
||||
<HelpButton contents="help.gc_full_build" />
|
||||
<HelpButton contents="help.gc_fullbuild" />
|
||||
</div>
|
||||
<div className="DownloadValue" id="downloadMenuButtonGCFullBuild">
|
||||
<BigButton
|
||||
|
||||
@@ -40,8 +40,7 @@ export default class NewsSection extends React.Component<IProps, IState> {
|
||||
super(props)
|
||||
|
||||
this.state = {
|
||||
// Set to commits since latest doesn't show any real info anyways
|
||||
selected: 'commits',
|
||||
selected: props.selected || 'commits',
|
||||
}
|
||||
|
||||
this.setSelected = this.setSelected.bind(this)
|
||||
|
||||
Reference in New Issue
Block a user