File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 16
16
<Identity
17
17
Name =" FilesDev"
18
18
Publisher =" CN=Files"
19
- Version =" 3.6.2 .0" />
19
+ Version =" 3.6.3 .0" />
20
20
21
21
<Properties >
22
22
<DisplayName >Files - Dev</DisplayName >
Original file line number Diff line number Diff line change @@ -92,15 +92,14 @@ private static ContentDialog SetContentDialogRoot(ContentDialog contentDialog)
92
92
93
93
public static void CloseAllDialogs ( )
94
94
{
95
+ if ( MainWindow . Instance ? . Content ? . XamlRoot == null )
96
+ return ;
97
+
95
98
var openedDialogs = VisualTreeHelper . GetOpenPopupsForXamlRoot ( MainWindow . Instance . Content . XamlRoot ) ;
96
99
97
100
foreach ( var item in openedDialogs )
98
- {
99
101
if ( item . Child is ContentDialog dialog )
100
- {
101
102
dialog . Hide ( ) ;
102
- }
103
- }
104
103
}
105
104
106
105
private static IEnumerable < IconFileInfo > SidebarIconResources = LoadSidebarIconResources ( ) ;
You can’t perform that action at this time.
0 commit comments