mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-20 21:01:06 +08:00
enhance: show the Submodule Change Details window on the same screen of it's parent (#2264)
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
@@ -45,15 +45,10 @@ namespace SourceGit.Views
|
||||
|
||||
private void OnOpenSubmoduleRevisionCompare(object sender, RoutedEventArgs e)
|
||||
{
|
||||
var owner = TopLevel.GetTopLevel(this) as Window;
|
||||
if (owner == null)
|
||||
return;
|
||||
|
||||
if (sender is Button { DataContext: Models.SubmoduleDiff diff } && diff.CanOpenDetails)
|
||||
{
|
||||
var vm = new ViewModels.SubmoduleRevisionCompare(diff);
|
||||
var dailog = new SubmoduleRevisionCompare() { DataContext = vm };
|
||||
dailog.Show(owner);
|
||||
App.ShowWindow(vm);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user