Use TempPath for WebView
This commit is contained in:
1 parent
e1630e9919
commit
8290b57cd4
3 files changed
+15
-3
No files matched your search
@@ -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