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

MainWindow: use Adw.NavigationView #802

Merged
merged 13 commits into from
Sep 28, 2024
Merged

Conversation

danirabbit
Copy link
Member

Replace deprecated Leaflet with NavigationView.

Since NavigationView doesn't have a property for disabling navigation, we replace the navigation stack to prevent navigation. There's some tricks with waiting for shown so that we still get animations

@danirabbit danirabbit requested a review from a team September 12, 2024 20:09
@danirabbit
Copy link
Member Author

@ryonakano Can you see if this fixes #793 for you? I'm thinking it might be a bug with Leaflet on X11

@ryonakano
Copy link
Contributor

ryonakano commented Sep 13, 2024

@ryonakano Can you see if this fixes #793 for you? I'm thinking it might be a bug with Leaflet on X11

Tried Testing Mode on X11, but unfortunately not:

expand

test-screen0.webm

The following critical messages are shown on Terminal when clicking the storage bar:

(io.elementary.installer:10651): Gdk-CRITICAL **: 21:37:02.947: gdk_monitor_get_geometry: assertion 'GDK_IS_MONITOR (monitor)' failed

(io.elementary.installer:10651): Gdk-CRITICAL **: 21:37:02.948: gdk_monitor_get_geometry: assertion 'GDK_IS_MONITOR (monitor)' failed

Copy link
Contributor

@ryonakano ryonakano left a comment

Choose a reason for hiding this comment

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

Confirmed all pages transit to the expected page and back to the previous page.

Code almost looks good, but leaving some comments.

src/MainWindow.vala Outdated Show resolved Hide resolved
src/Views/DriversView.vala Outdated Show resolved Hide resolved
Copy link
Contributor

@ryonakano ryonakano left a comment

Choose a reason for hiding this comment

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

Let's go 🚀

@danirabbit danirabbit merged commit 8e51b17 into main Sep 28, 2024
5 checks passed
@danirabbit danirabbit deleted the danirabbit/navigation-view branch September 28, 2024 03:42
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.

3 participants