mirror of
https://github.com/BeyondDimension/SteamTools.git
synced 2026-10-26 12:09:32 +08:00
save
This commit is contained in:
+6
-8
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user