Use TempPath for WebView
This commit is contained in:
@ -8,7 +8,7 @@ namespace Elwig.Helpers {
|
||||
|
||||
public TempFile() : this(null) { }
|
||||
|
||||
public TempFile(string? ext) : this(Path.Combine(Path.GetTempPath(), "Elwig"), ext) { }
|
||||
public TempFile(string? ext) : this(App.TempPath, ext) { }
|
||||
|
||||
public TempFile(string dir, string? ext) {
|
||||
FilePath = Path.Combine(dir, Path.GetRandomFileName().Replace(".", "") + (ext != null ? $".{ext}" : ""));
|
||||
|
Reference in New Issue
Block a user