From 6cb35eb09c8df7d521fb10bec37208de48b352e8 Mon Sep 17 00:00:00 2001 From: cuu Date: Fri, 14 Dec 2018 18:35:30 +0800 Subject: [PATCH] notifications bug fix --- Menu/GameShell/10_Settings/Notification/__init__.py | 12 ++++++++---- sys.py/gsnotify/Jobs/00_lowpower.alias | 2 +- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/Menu/GameShell/10_Settings/Notification/__init__.py b/Menu/GameShell/10_Settings/Notification/__init__.py index fcec788..1edd992 100644 --- a/Menu/GameShell/10_Settings/Notification/__init__.py +++ b/Menu/GameShell/10_Settings/Notification/__init__.py @@ -1,6 +1,7 @@ # -*- coding: utf-8 -*- import os +import platform import pygame import glob #import math @@ -101,7 +102,10 @@ class NotificationPage(Page): Page.__init__(self) self._Icons = {} - def GenList(self): + if "arm" in platform.machine(): + os.system( "git config --global core.filemode false" ) + + def GenList(self): self._MyList = [] ## map ini to self._AList @@ -110,7 +114,7 @@ class NotificationPage(Page): start_x = 10 start_y = 0 - + counter = 0 for i,v in enumerate( files_path): filename, file_extension = os.path.splitext(v) alias_file = filename + ".alias" @@ -119,7 +123,7 @@ class NotificationPage(Page): li = NotifyJobListItem() li._Parent = self li._PosX = start_x - li._PosY = start_y + i*InfoPageListItem._Height + li._PosY = start_y + counter*InfoPageListItem._Height li._Width = Width-10 li._Fonts["normal"] = self._ListFontObj li._Fonts["small"] = fonts["varela12"] @@ -140,7 +144,7 @@ class NotificationPage(Page): ##li.SetSmallText( v ) self._MyList.append(li) - + counter += 1 def Init(self): if self._Screen != None: diff --git a/sys.py/gsnotify/Jobs/00_lowpower.alias b/sys.py/gsnotify/Jobs/00_lowpower.alias index 71617b6..c302351 100644 --- a/sys.py/gsnotify/Jobs/00_lowpower.alias +++ b/sys.py/gsnotify/Jobs/00_lowpower.alias @@ -1 +1 @@ -Low Battery Warning +Low Battery