mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-06-28 02:26:23 +02:00
Compare commits
16 commits
1cf36d3283
...
dd3c523555
Author | SHA1 | Date | |
---|---|---|---|
![]() |
dd3c523555 | ||
![]() |
92d8f0eb1c | ||
![]() |
9552cafaaa | ||
![]() |
066a3c9e56 | ||
![]() |
eb8b35b170 | ||
![]() |
a2b35ecce3 | ||
![]() |
9c5d81201d | ||
![]() |
16ad91d05e | ||
![]() |
2a85bfd28a | ||
![]() |
b94c083b1a | ||
![]() |
fceff066c5 | ||
![]() |
2cf9c53c05 | ||
![]() |
6d583862c1 | ||
![]() |
a553958479 | ||
![]() |
74a9b94227 | ||
![]() |
d3208a4c44 |
2 changed files with 9 additions and 4 deletions
|
@ -310,10 +310,15 @@ namespace Ryujinx.Ava.UI.ViewModels
|
|||
|
||||
private void TotalTimePlayed_Recalculated(Optional<TimeSpan> ts)
|
||||
{
|
||||
ShowTotalTimePlayed = ts.HasValue;
|
||||
|
||||
if (ts.HasValue)
|
||||
LocaleManager.Instance.SetDynamicValues(LocaleKeys.GameListLabelTotalTimePlayed, ValueFormatUtils.FormatTimeSpan(ts.Value));
|
||||
{
|
||||
var formattedPlayTime = ValueFormatUtils.FormatTimeSpan(ts.Value);
|
||||
LocaleManager.Instance.SetDynamicValues(LocaleKeys.GameListLabelTotalTimePlayed, formattedPlayTime);
|
||||
ShowTotalTimePlayed = formattedPlayTime != string.Empty;
|
||||
return;
|
||||
}
|
||||
|
||||
ShowTotalTimePlayed = ts.HasValue;
|
||||
}
|
||||
|
||||
public bool ShowTotalTimePlayed
|
||||
|
@ -334,7 +339,6 @@ namespace Ryujinx.Ava.UI.ViewModels
|
|||
_listSelectedApplication = value;
|
||||
|
||||
if (_listSelectedApplication != null && ListAppContextMenu == null)
|
||||
|
||||
ListAppContextMenu = new ApplicationContextMenu();
|
||||
else if (_listSelectedApplication == null && ListAppContextMenu != null)
|
||||
ListAppContextMenu = null!;
|
||||
|
|
|
@ -64,6 +64,7 @@
|
|||
MinWidth="200"
|
||||
Height="6"
|
||||
VerticalAlignment="Center"
|
||||
Margin="0, 0, 5, 0"
|
||||
Foreground="{DynamicResource SystemAccentColorLight2}"
|
||||
IsVisible="{Binding StatusBarVisible}"
|
||||
Maximum="{Binding StatusBarProgressMaximum}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue