mirror of
https://github.com/chylex/Backup-Essentials.git
synced 2025-06-02 06:34:08 +02:00
Disabled Frame shortcuts and sounds
This commit is contained in:
parent
11ed0f5940
commit
9f496aad8c
@ -29,6 +29,8 @@ namespace BackupEssentials{
|
|||||||
public MainWindow(SplashScreen splashScreen){
|
public MainWindow(SplashScreen splashScreen){
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
Instance = this;
|
Instance = this;
|
||||||
|
|
||||||
|
ContentFrame.Navigated += (sender2, args2) => { ContentFrame.NavigationService.RemoveBackEntry(); };
|
||||||
|
|
||||||
Loaded += (sender, args) => {
|
Loaded += (sender, args) => {
|
||||||
if (splashScreen != null)splashScreen.Close(new TimeSpan());
|
if (splashScreen != null)splashScreen.Close(new TimeSpan());
|
||||||
@ -141,8 +143,7 @@ namespace BackupEssentials{
|
|||||||
if (switchHandler != null && switchHandler.OnSwitch())return false;
|
if (switchHandler != null && switchHandler.OnSwitch())return false;
|
||||||
|
|
||||||
Page page = null;
|
Page page = null;
|
||||||
ContentFrame.Navigate(pageType == null ? null : page = AppPageManager.GetPage(pageType));
|
ContentFrame.Content = pageType == null ? null : page = AppPageManager.GetPage(pageType);
|
||||||
if (ContentFrame.NavigationService.CanGoBack)ContentFrame.NavigationService.RemoveBackEntry();
|
|
||||||
|
|
||||||
IPageShowData pageDataHandler = page as IPageShowData;
|
IPageShowData pageDataHandler = page as IPageShowData;
|
||||||
if (pageDataHandler != null && data != IgnoreShowData)pageDataHandler.OnShow(data);
|
if (pageDataHandler != null && data != IgnoreShowData)pageDataHandler.OnShow(data);
|
||||||
|
Loading…
Reference in New Issue
Block a user