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

28 lines
587 B
C#
Raw Normal View History

2023-03-03 19:25:33 +00:00
using ReactiveUI;
2024-05-21 20:15:19 +01:00
namespace SPT.Launcher.Models
2023-03-03 19:25:33 +00:00
{
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;
}
}
}