This commit is contained in:
Mossimo
2021-05-18 09:24:54 +08:00
parent 15ab81f6e4
commit ea92cccf59
2 changed files with 20 additions and 8 deletions
@@ -141,22 +141,20 @@
</Border>
<controls:ScrollingTextBlock Width="{ReflectionBinding #app.Width}" Text="{Binding DisplayName}" FontSize="12" FontWeight="Bold" Foreground="{DynamicResource HighlightForegroundBrushKey}"/>
<Panel IsVisible="{Binding !Process,Converter={StaticResource IsNullConverter}}">
<StackPanel IsVisible="{Binding !Process,Converter={StaticResource IsNullConverter}}">
<Ellipse Height="6" Width="6" Fill="#47A42B"></Ellipse>
<TextBlock
Text="{ReflectionBinding Path=Res.GameList_RunState,Mode=OneWay,Source={x:Static resx:R.Current}}"
VerticalAlignment="Center"
TextWrapping="WrapWithOverflow"
FontSize="10" />
</Panel>
<Panel IsVisible="{Binding Process,Converter={StaticResource IsNullConverter}}">
FontSize="12" />
</StackPanel>
<StackPanel IsVisible="{Binding Process,Converter={StaticResource IsNullConverter}}">
<Ellipse Height="6" Width="6" Fill="#FF4F58"> </Ellipse>
<TextBlock
Text="{ReflectionBinding Path=Res.GameList_StopState,Mode=OneWay,Source={x:Static resx:R.Current}}"
VerticalAlignment="Center"
TextWrapping="WrapWithOverflow"
FontSize="10" />
</Panel>
FontSize="12" />
</StackPanel>
</StackPanel>
</DataTemplate>
</ItemsRepeater.ItemTemplate>
@@ -151,6 +151,11 @@ namespace System.Application.UI.ViewModels
SteamConnectService.Current.RuningSteamApps.Remove(runState);
item.Process = null;
}
else
{
item.Process = null;
SteamConnectService.Current.RuningSteamApps.Add(item);
}
}
}
RunLoaingState = false;
@@ -210,8 +215,17 @@ namespace System.Application.UI.ViewModels
};
appInfo.Process.EnableRaisingEvents = true;
}
appInfo.Process = null;
list.Add(appInfo);
}
else
{
list.Add(new SteamApp
{
AppId = item.Key,
Name = item.Value
});
}
}
IdleGameList = list;
Toast.Show(AppResources.GameList_OperationSuccess);