private ReportPopupMode GetReportPopupMode (GeneralOptions options)
{
if (options.ShowReportsWithWarningsImmediately)
{
// HINT: althoug it is possible that in this case ShowReportsWithErrorsImmediately is false,
// the UI doesnt offer that feature to just show reports with warnings immediately
return ReportPopupMode.WarningsAndErrors;
}
else if (options.ShowReportsWithErrorsImmediately)
{
return ReportPopupMode.JustErrors;
}
else
{
return ReportPopupMode.NoPopup;
}
}