Allow rendering with Docnet PDF
This commit is contained in:
@@ -12,10 +12,12 @@ namespace MayShow.Models;
|
||||
class Settings : ChangeNotifier
|
||||
{
|
||||
private string _lastUsedPath;
|
||||
private bool _useDocnetPDFImageRendering;
|
||||
|
||||
public Settings()
|
||||
{
|
||||
_lastUsedPath = "";
|
||||
_useDocnetPDFImageRendering = true;
|
||||
}
|
||||
|
||||
[JsonInclude]
|
||||
@@ -25,6 +27,13 @@ class Settings : ChangeNotifier
|
||||
set { _lastUsedPath = value; NotifyPropertyChanged(); }
|
||||
}
|
||||
|
||||
[JsonInclude]
|
||||
public bool UseDocnetPFDImageRendering
|
||||
{
|
||||
get => _useDocnetPDFImageRendering;
|
||||
set { _useDocnetPDFImageRendering = value; NotifyPropertyChanged(); }
|
||||
}
|
||||
|
||||
public static string GetSettingsFileName()
|
||||
{
|
||||
return "settings.json";
|
||||
|
||||
Reference in New Issue
Block a user