Class CleanupSuggestionViewModel
- Namespace
- McServerLauncher.ViewModels
- Assembly
- McServerLauncher.dll
One row of the "you can clean up" panel: a jar, why it is there, and whether it is ticked.
public class CleanupSuggestionViewModel : ObservableObject, INotifyPropertyChanged, INotifyPropertyChanging
- Inheritance
-
CleanupSuggestionViewModel
- Implements
- Inherited Members
Constructors
CleanupSuggestionViewModel(string, string, string, string)
public CleanupSuggestionViewModel(string path, string fileName, string reason, string key)
Parameters
Properties
FileName
The file name as the installed list shows it.
public string FileName { get; }
Property Value
IsSelected
Ticked by default: the panel only lists what the app is confident about.
[ExcludeFromCodeCoverage]
public bool IsSelected { get; set; }
Property Value
IsStillAsScanned
Whether the file is still the one the suggestion was made about.
public bool IsStillAsScanned { get; }
Property Value
Remarks
The scan runs in the background and asks the store, so a row can outlive its file by seconds: a mod switched back on is renamed, an update can put a new jar under the same name. Deleting by path then removed nothing and said "removed" — or removed the new file.
Key
What "not now" is remembered under.
public string Key { get; }
Property Value
Path
The file on disk, .disabled included.
public string Path { get; }
Property Value
Reason
Why it is suggested, in a sentence.
public string Reason { get; }