From 8b7755fb4950f62045a1719d4aef5747464669b3 Mon Sep 17 00:00:00 2001 From: shekhar-cis Date: Mon, 29 Aug 2022 21:43:01 +0530 Subject: [PATCH] Add manager_open variable from kivy_state --- src/bitmessagekivy/mpybit.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bitmessagekivy/mpybit.py b/src/bitmessagekivy/mpybit.py index 51e311e3..a16967fe 100644 --- a/src/bitmessagekivy/mpybit.py +++ b/src/bitmessagekivy/mpybit.py @@ -258,12 +258,12 @@ class NavigateApp(MDApp): if check_permission(Permission.WRITE_EXTERNAL_STORAGE) and \ check_permission(Permission.READ_EXTERNAL_STORAGE): self.file_manager.show(os.getenv('EXTERNAL_STORAGE')) - self.manager_open = True + self.kivy_state_obj.manager_open = True else: request_permissions([Permission.WRITE_EXTERNAL_STORAGE, Permission.READ_EXTERNAL_STORAGE]) else: self.file_manager.show(os.environ["HOME"]) - self.manager_open = True + self.kivy_state_obj.manager_open = True def select_path(self, path): """This method is used to set the select image""" @@ -292,7 +292,7 @@ class NavigateApp(MDApp): def exit_manager(self, *args): """Called when the user reaches the root of the directory tree.""" - self.manager_open = False + self.kivy_state_obj.manager_open = False self.file_manager.close() def load_selected_Image(self, curerentAddr):