0
0
mirror of https://github.com/sp-tarkov/launcher.git synced 2025-02-13 06:30:43 -05:00

28 lines
587 B
C#

using ReactiveUI;
namespace SPT.Launcher.Models
{
public class ImageHelper : ReactiveObject
{
private string _Path;
public string Path
{
get => _Path;
set => this.RaiseAndSetIfChanged(ref _Path, value);
}
/// <summary>
/// Force property changed by touching the image path.
/// </summary>
/// <remarks>Can be used to force image re-loading</remarks>
public void Touch()
{
string tmp = Path;
Path = "";
Path = tmp;
}
}
}