Skip to content

Commit 9cae05f

Browse files
authored
Close dialog when install button is clicked
1 parent 5dcbd0c commit 9cae05f

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/LibraryManager.Vsix/UI/InstallDialog.xaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,8 @@
201201
Width="65"
202202
DockPanel.Dock="Right"
203203
Margin="0 0 6 0" IsDefault="True"
204-
Command="{Binding InstallPackageCommand}">
204+
Command="{Binding InstallPackageCommand}"
205+
Click="InstallButton_Clicked">
205206
</Button>
206207
</DockPanel>
207208
</Grid>

src/LibraryManager.Vsix/UI/InstallDialog.xaml.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,5 +189,10 @@ private void ProviderComboBox_SelectionChanged(object sender, SelectionChangedEv
189189
LibrarySearchBox.RefreshSearch();
190190
}
191191
}
192+
193+
private void InstallButton_Clicked(object sender, RoutedEventArgs e)
194+
{
195+
CloseDialog(true);
196+
}
192197
}
193198
}

0 commit comments

Comments
 (0)