From 86d2f0cd7a1bd68a7e250654f2bf59faafd19d62 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Fri, 9 Jul 2021 14:15:54 +0800 Subject: [PATCH] bugfix --- kivyblocks/blocksapp.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kivyblocks/blocksapp.py b/kivyblocks/blocksapp.py index 41bf972..64ddee4 100644 --- a/kivyblocks/blocksapp.py +++ b/kivyblocks/blocksapp.py @@ -15,6 +15,7 @@ from kivy.metrics import sp,dp,mm from kivy.core.window import WindowBase, Window from kivy.clock import Clock from kivy.logger import Logger +from kivy.utils import platform import kivy import plyer @@ -137,6 +138,8 @@ class BlocksApp(App): return self.csses.get(name,self.csses.get('default',{})) def build(self): + self.platform = platform + self.is_desktop = platform in ['win', 'linux', 'macosx'] config = getConfig() self.csses = { "default":{