From 1e6d0b6ff2cdd2c4aa59a1998266c88db292c53d Mon Sep 17 00:00:00 2001 From: rdbende Date: Sun, 3 Dec 2023 12:55:02 +0100 Subject: [PATCH] Fix type annotations --- cozy/ui/app_view.py | 2 +- cozy/ui/main_view.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cozy/ui/app_view.py b/cozy/ui/app_view.py index b80ff15b..cc16e548 100644 --- a/cozy/ui/app_view.py +++ b/cozy/ui/app_view.py @@ -24,7 +24,7 @@ def __init__(self, builder: Gtk.Builder): def _get_ui_elements(self): self._main_stack: Gtk.Stack = self._builder.get_object("main_stack") - self._navigation_view: Adw.Leaflet = self._builder.get_object("navigation_view") + self._navigation_view: Adw.NavigationView = self._builder.get_object("navigation_view") def _connect_ui_elements(self): self._main_stack.connect("notify::visible-child", self._update_view_model_view) diff --git a/cozy/ui/main_view.py b/cozy/ui/main_view.py index 874b262f..e0b2e20a 100644 --- a/cozy/ui/main_view.py +++ b/cozy/ui/main_view.py @@ -3,7 +3,7 @@ import webbrowser from threading import Thread -from gi.repository import Gtk, Gio, Gdk, GLib, GObject +from gi.repository import Adw, Gtk, Gio, Gdk, GLib, GObject import cozy.control.filesystem_monitor as fs_monitor import cozy.ext.inject as inject