Cleanup 2
This commit is contained in:
parent
a466bb3c14
commit
e6c6a8a046
|
@ -118,8 +118,6 @@ namespace Microsoft.PowerToys.Settings.UI.WinUI3
|
|||
}
|
||||
});
|
||||
ipcmanager.Start();
|
||||
// TODO(stefan)
|
||||
//app.Run();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -18,6 +18,6 @@
|
|||
<TextBlock Style="{StaticResource CaptionTextBlockStyle}" Margin="12,0,0,0" Text="PowerToys" />
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
<local:ShellPage Grid.Row="1" x:Name="shellPage"/>
|
||||
<local:ShellPage Grid.Row="1"/>
|
||||
</Grid>
|
||||
</Window>
|
||||
|
|
|
@ -33,10 +33,7 @@ namespace Microsoft.PowerToys.Settings.UI.WinUI3
|
|||
ShellPage.SetRestartAdminSndMessageCallback(msg =>
|
||||
{
|
||||
App.GetTwoWayIPCManager()?.Send(msg);
|
||||
// TODO(stefan)
|
||||
// isOpen = false;
|
||||
Environment.Exit(0);
|
||||
// System.Windows.Application.Current.Shutdown(); // close application
|
||||
});
|
||||
|
||||
// send IPC Message
|
||||
|
@ -74,8 +71,14 @@ namespace Microsoft.PowerToys.Settings.UI.WinUI3
|
|||
|
||||
ShellPage.SetElevationStatus(App.IsElevated);
|
||||
ShellPage.SetIsUserAnAdmin(App.IsUserAnAdmin);
|
||||
shellPage.Refresh();
|
||||
//shellPage.Refresh();
|
||||
|
||||
}
|
||||
|
||||
public void NavigateToSection(Type type)
|
||||
{
|
||||
Activate();
|
||||
ShellPage.Navigate(type);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue