Skip to content

Commit

Permalink
Warning label for projects with warnings is now default
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanKert committed Apr 27, 2019
1 parent a14a6fb commit 7720135
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 11 deletions.
4 changes: 0 additions & 4 deletions src/BuildVision.UI/Settings/GeneralSettingsControl.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,6 @@
Content="{x:Static res:Resources.BuildMessagesSettings_StatusBarOutputCheckBox}"
IsChecked="{Binding EnableStatusBarOutput}" />

<CheckBox Margin="8"
Content="{x:Static res:Resources.BuildMessagesSettings_DisplayWarningSignCheckBox}"
IsChecked="{Binding ShowWarningSignForBuilds}" />

<CheckBox Margin="8"
Content="{x:Static res:Resources.BuildMessagesSettings_HideUpToDateTargets}"
IsChecked="{Binding HideUpToDateTargets}" />
Expand Down
3 changes: 0 additions & 3 deletions src/BuildVision.UI/Settings/Models/GeneralSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ public class GeneralSettings : SettingsBase

public bool StopBuildAfterFirstError { get; set; }

public bool ShowWarningSignForBuilds { get; set; }

public bool HideUpToDateTargets { get; set; }

public NavigateToBuildFailureReasonCondition NavigateToBuildFailureReason { get; set; }
Expand All @@ -27,7 +25,6 @@ public GeneralSettings()
BuildProgressSettings = new BuildProgressSettings();
EnableStatusBarOutput = true;
IndicatorsPanelVisible = true;
ShowWarningSignForBuilds = true;
}
}
}
5 changes: 2 additions & 3 deletions src/BuildVision.UI/ViewModels/BuildVisionPaneViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public class BuildVisionPaneViewModel : BindableBase, IBuildVisionPaneViewModel
private readonly IPackageSettingsProvider _settingsProvider;
private ObservableCollection<DataGridColumn> _gridColumnsRef;

private ILogger _logger = LogManager.ForContext<BuildVisionPaneViewModel>();
private readonly ILogger _logger = LogManager.ForContext<BuildVisionPaneViewModel>();

public ISolutionModel SolutionModel { get; set; }

Expand Down Expand Up @@ -211,8 +211,7 @@ public BuildVisionPaneViewModel(
_settingsProvider.SettingsChanged += () =>
{
OnControlSettingsChanged();
SyncColumnSettings();

SyncColumnSettings();
};

if (settingsProvider.Settings.GeneralSettings.FillProjectListOnBuildBegin)
Expand Down
2 changes: 1 addition & 1 deletion src/BuildVision/Services/BuildInformationProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ private ProjectState GetProjectState(bool success, bool canceled, IProjectItem c
case BuildAction.RebuildAll:
if (success)
{
if (_packageSettingsProvider.Settings.GeneralSettings.ShowWarningSignForBuilds && currentProject.WarningsCount > 0)
if (currentProject.WarningsCount > 0)
{
projectState = ProjectState.BuildWarning;
}
Expand Down

0 comments on commit 7720135

Please sign in to comment.