mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-15 08:34:43 +01:00
cleanup
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import React, { RefObject } from 'react'
|
||||
import React from 'react'
|
||||
import { open } from '@tauri-apps/api/dialog'
|
||||
import TextInput from './TextInput'
|
||||
import File from '../../../resources/icons/folder.svg'
|
||||
|
||||
@@ -30,7 +30,7 @@ export default class ProgressBar extends React.Component<IProps, IState> {
|
||||
|
||||
componentDidMount() {
|
||||
// Periodically check the progress of passed file path
|
||||
const intv = setInterval(() => {
|
||||
setInterval(() => {
|
||||
const prog = this.props.downloadManager.getTotalAverage()
|
||||
this.setState({
|
||||
average: prog?.average || 0,
|
||||
|
||||
Reference in New Issue
Block a user