From 2693470ebbf9922c688e874dd8b234c4ef53ca23 Mon Sep 17 00:00:00 2001 From: marxzuckerburg Date: Fri, 2 Oct 2020 10:04:04 +0100 Subject: [PATCH] fixed avatar --- comrad/app/screens/map.py | 18 +++++++++--------- comrad/app/screens/profile/profile.py | 2 ++ 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/comrad/app/screens/map.py b/comrad/app/screens/map.py index e510a6d..0c151d4 100644 --- a/comrad/app/screens/map.py +++ b/comrad/app/screens/map.py @@ -200,15 +200,15 @@ class MapWidget(MDDialog2): self.points+=[(lat,long,desc)] # # point - # plt.plot( - # long, - # lat, - # '+', - # markersize=25, - # linewidth=10, - # color=self.color_marker,#rgb(*color), - # transform=ccrs.Geodetic(), - # ) + plt.plot( + long, + lat, + '.', + markersize=25, + linewidth=10, + color=self.color_marker,#rgb(*color), + transform=ccrs.Geodetic(), + ) # line if self.last_lat and self.last_long: diff --git a/comrad/app/screens/profile/profile.py b/comrad/app/screens/profile/profile.py index 89d250f..9950498 100644 --- a/comrad/app/screens/profile/profile.py +++ b/comrad/app/screens/profile/profile.py @@ -264,6 +264,8 @@ class ProfileScreen(ProtectedScreen): self.avatar.screen = self self.page_layout.add_widget(self.avatar_layout,1) # self.avatar_layout.add_widget(self.avatar) + if hasattr(self,'avatar_layout_small'): + del self.avatar_layout_small def on_pre_enter(self, width=AVATAR_WIDTH): if not super().on_pre_enter(): return