Skip to content

Commit

Permalink
up 调整下载界面
Browse files Browse the repository at this point in the history
  • Loading branch information
Coloryr committed Nov 13, 2024
1 parent 9a17d3a commit de96c1b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/ColorMC.Gui/UI/Controls/Items/DownloadItemControl.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@
<TextBlock Foreground="#FF9A9A9A" Text="{Binding Index, FallbackValue=1}" />
</StackPanel>
<TextBlock
Width="100"
MinWidth="100"
Margin="0,0,10,0"
HorizontalAlignment="Left"
Text="{Binding NowTemp, FallbackValue=Speed}" />
<TextBlock
Width="80"
MinWidth="80"
Margin="0,0,10,0"
Text="{Binding State, FallbackValue=下载中}" />
<StackPanel Orientation="Horizontal">
Expand Down
2 changes: 1 addition & 1 deletion src/ColorMC.Gui/UI/Model/Download/DownloadModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ private void DownloadTaskUpdate(int all, int now)
public DownloadArg Start()
{
_needRun = true;
DispatcherTimer.Run(Run, TimeSpan.FromMilliseconds(50));
DispatcherTimer.Run(Run, TimeSpan.FromMilliseconds(100));

return new()
{
Expand Down

0 comments on commit de96c1b

Please sign in to comment.