mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-12-19 04:37:01 +00:00
misc: chore: Use static instances of converters instead of using control resources
This commit is contained in:
parent
a469f3d710
commit
191e158289
20 changed files with 82 additions and 134 deletions
|
|
@ -1,6 +1,5 @@
|
|||
using Avalonia.Data.Converters;
|
||||
using Avalonia.Markup.Xaml;
|
||||
using Ryujinx.Ava.Common.Locale;
|
||||
using Ryujinx.Ava.Utilities.AppLibrary;
|
||||
using System;
|
||||
using System.Globalization;
|
||||
|
|
@ -19,15 +18,10 @@ namespace Ryujinx.Ava.UI.Helpers
|
|||
{
|
||||
return $"Hosted Games: {applicationData.GameCount}\nOnline Players: {applicationData.PlayerCount}";
|
||||
}
|
||||
else
|
||||
{
|
||||
return "";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
return "";
|
||||
}
|
||||
|
||||
return "";
|
||||
|
||||
}
|
||||
|
||||
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue