Removed ReportHTML

This commit is contained in:
erri120 2020-02-01 13:17:10 +01:00
parent 366ccbc1e1
commit 5b5678363f
No known key found for this signature in database
GPG Key ID: A8C0A18D8D4D3135
4 changed files with 1 additions and 35 deletions

View File

@ -95,11 +95,6 @@ namespace Wabbajack.Lib
/// </summary>
public string Readme;
/// <summary>
/// Content Report in HTML form
/// </summary>
public string ReportHTML;
/// <summary>
/// The size of all the archives once they're downloaded
/// </summary>

View File

@ -186,14 +186,6 @@ namespace Wabbajack
{
var modList = await this.Compiler.Compile();
Completed = ErrorResponse.Create(modList.Succeeded);
try
{
ShowReport(modList.Value);
}
catch (Exception ex)
{
Utils.Error(ex, $"Error opening manifest report");
}
}
catch (Exception ex)
{
@ -275,12 +267,5 @@ namespace Wabbajack
.Switch()
.ToGuiProperty(this, nameof(CurrentCpuCount));
}
public void ShowReport(ModList modList)
{
var file = Path.GetTempFileName() + ".html";
File.WriteAllText(file, modList.ReportHTML);
Utils.StartProcessFromFile(file);
}
}
}

View File

@ -41,9 +41,6 @@ namespace Wabbajack
private readonly ObservableAsPropertyHelper<ISubInstallerVM> _installer;
public ISubInstallerVM Installer => _installer.Value;
private readonly ObservableAsPropertyHelper<string> _htmlReport;
public string HTMLReport => _htmlReport.Value;
private readonly ObservableAsPropertyHelper<bool> _installing;
public bool Installing => _installing.Value;
@ -203,9 +200,6 @@ namespace Wabbajack
this.WhenAny(x => x.ModList)
.Select(_ => false))
.ToGuiProperty(this, nameof(LoadingModlist));
_htmlReport = this.WhenAny(x => x.ModList)
.Select(modList => modList?.ReportHTML)
.ToGuiProperty(this, nameof(HTMLReport));
_installing = this.WhenAny(x => x.Installer.ActiveInstallation)
.Select(i => i != null)
.ToGuiProperty(this, nameof(Installing));
@ -314,7 +308,7 @@ namespace Wabbajack
.ToGuiProperty(this, nameof(ModListName));
// Define commands
ShowManifestCommand = ReactiveCommand.Create(ShowReport);
//ShowManifestCommand = ReactiveCommand.Create(ShowReport);
OpenReadmeCommand = ReactiveCommand.Create(
execute: () => this.ModList?.OpenReadmeWindow(),
canExecute: this.WhenAny(x => x.ModList)
@ -438,12 +432,5 @@ namespace Wabbajack
.Switch()
.ToGuiProperty(this, nameof(CurrentCpuCount));
}
private void ShowReport()
{
var file = Path.GetTempFileName() + ".html";
File.WriteAllText(file, HTMLReport);
Utils.StartProcessFromFile(file);
}
}
}

View File

@ -17,7 +17,6 @@ namespace Wabbajack
public Exception Error { get; }
public string ModListPath { get; }
public string Name => SourceModList?.Name;
public string ReportHTML => SourceModList?.ReportHTML;
public string Readme => SourceModList?.Readme;
public string Author => SourceModList?.Author;
public string Description => SourceModList?.Description;