Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code Quality: Improved app startup routine 2 - Checkpoint 2 #14045

Draft
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

d2dyno1
Copy link
Member

@d2dyno1 d2dyno1 commented Nov 23, 2023

Resolved / Related Issues

  • Were these changes approved in an issue or discussion with the project maintainers? In order to prevent extra work, feature requests and changes to the codebase must be approved before the pull request will be reviewed. This prevents extra work for the contributors and maintainers.
    Closes Bug: DirectoryNotFoundException in PinToStartAction #13947

Validation
How did you test these changes?

  • Did you build the app and test your changes?

@d2dyno1
Copy link
Member Author

d2dyno1 commented Dec 26, 2023

It crashes again when keeping it in background 😭

@hishitetsu
Copy link
Member

It crashes again when keeping it in background 😭

When I tried it, nothing content was displayed in the first place...

Comment on lines 38 to +41
if (value >= 0 && value < MainPageViewModel.AppInstances.Count)
{
Frame rootFrame = (Frame)MainWindow.Instance.Content;
var mainView = (MainPage)rootFrame.Content;
mainView.ViewModel.SelectedTabItem = MainPageViewModel.AppInstances[value];
if (MainWindow.Instance.GetMainPage() is { } mainPage)
mainPage.ViewModel.SelectedTabItem = MainPageViewModel.AppInstances[value];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might as well combine the IF statements.

@d2dyno1
Copy link
Member Author

d2dyno1 commented Jan 4, 2024

I'll work on it more tomorrow 🙂

@d2dyno1
Copy link
Member Author

d2dyno1 commented Jan 8, 2024

Some progress: there's no longer a crash when resuming from background, however the app content stays empty

@yaira2 yaira2 force-pushed the main branch 2 times, most recently from edf33f7 to c79b2cb Compare March 10, 2024 02:11
@yaira2 yaira2 force-pushed the main branch 3 times, most recently from 32de19b to ba56951 Compare April 4, 2024 21:47
@0x5bfa
Copy link
Member

0x5bfa commented May 1, 2024

@d2dyno1 Still working on this PR??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: DirectoryNotFoundException in PinToStartAction
5 participants