Skip to content

Commit 048cf97

Browse files
committed
Selecting the right Settings section Closes #4610
1 parent fea4367 commit 048cf97

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

Rubberduck.Core/UI/Inspections/InspectionResultsViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ public void FilterResults(IEnumerable<CodeInspectionSeverity> inspections)
329329

330330
private void OpenSettings(object param)
331331
{
332-
using (var window = _settingsFormFactory.Create())
332+
using (var window = _settingsFormFactory.Create(SettingsViews.InspectionSettings))
333333
{
334334
window.ShowDialog();
335335
_settingsFormFactory.Release(window);

Rubberduck.Core/UI/Settings/SettingsForm.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ namespace Rubberduck.UI.Settings
1212
public interface ISettingsFormFactory
1313
{
1414
SettingsForm Create();
15+
SettingsForm Create(SettingsViews activeView);
1516
void Release(SettingsForm form);
1617
}
1718

Rubberduck.Core/UI/ToDoItems/ToDoExplorerViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ public CommandBase OpenTodoSettings
224224
}
225225
return _openTodoSettings = new DelegateCommand(LogManager.GetCurrentClassLogger(), _ =>
226226
{
227-
using (var window = _settingsFormFactory.Create())
227+
using (var window = _settingsFormFactory.Create(SettingsViews.TodoSettings))
228228
{
229229
window.ShowDialog();
230230
_settingsFormFactory.Release(window);

Rubberduck.Core/UI/UnitTesting/TestExplorerViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ public bool GroupByCategory
193193

194194
private void OpenSettings(object param)
195195
{
196-
using (var window = _settingsFormFactory.Create())
196+
using (var window = _settingsFormFactory.Create(SettingsViews.UnitTestSettings))
197197
{
198198
window.ShowDialog();
199199
_settingsFormFactory.Release(window);

0 commit comments

Comments
 (0)