Skip to content

Commit 4809047

Browse files
authored
fix(ui): remove unnecessary IntPtr conversion for HWnd (#18)
1 parent c958451 commit 4809047

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/CodingWithCalvin.ProjectRenamifier/Commands/RenamifyProjectCommand.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,9 @@ private void RenameProject(Project project, DTE2 dte)
6767
var dialog = new RenameProjectDialog(currentName);
6868

6969
// Set the owner to the VS main window for proper modal behavior
70-
var hwnd = new IntPtr(dte.MainWindow.HWnd);
7170
var helper = new WindowInteropHelper(dialog)
7271
{
73-
Owner = hwnd
72+
Owner = dte.MainWindow.HWnd
7473
};
7574

7675
if (dialog.ShowDialog() != true)

0 commit comments

Comments
 (0)