From ec611f9d7d244c625c6b98e535bb940668b2fb56 Mon Sep 17 00:00:00 2001 From: Thoronium <107363768+NotThorny@users.noreply.github.com> Date: Sat, 25 Feb 2023 21:00:57 -0700 Subject: [PATCH] News testing --- src/ui/Main.tsx | 4 ---- src/ui/components/news/NewsSection.tsx | 1 + 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/ui/Main.tsx b/src/ui/Main.tsx index ddfc777..5a7dd9b 100644 --- a/src/ui/Main.tsx +++ b/src/ui/Main.tsx @@ -18,7 +18,6 @@ import { listen } from '@tauri-apps/api/event' import { dataDir } from '@tauri-apps/api/path' import { appWindow } from '@tauri-apps/api/window' import { unpatchGame } from '../utils/metadata' -import { showNews } from './components/news/NewsSection' import DownloadHandler from '../utils/download' // Graphics @@ -121,9 +120,6 @@ export class Main extends React.Component { 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 - showNews() } async openExtrasMenu(playGame: () => void) { diff --git a/src/ui/components/news/NewsSection.tsx b/src/ui/components/news/NewsSection.tsx index 7adddc5..bc544b0 100644 --- a/src/ui/components/news/NewsSection.tsx +++ b/src/ui/components/news/NewsSection.tsx @@ -50,6 +50,7 @@ export default class NewsSection extends React.Component { componentDidMount() { // Call showNews off the bat this.showNews() + this.setSelected('commits') } setSelected(item: string) {