warehouse bug fix of adding URL repeatedly

This commit is contained in:
cuu 2019-12-25 05:59:06 +00:00
parent 58877ba643
commit f9a62573de

View File

@ -959,11 +959,16 @@ class GameStorePage(Page):
self._Screen._MsgBox.SetText("Warehouse existed!")
self._Screen._MsgBox.Draw()
self._Screen.SwapAndShow()
else:
if "github.com/clockworkpi/warehouse" in inputed:
self._Screen._MsgBox.SetText("Warehouse existed!")
self._Screen._MsgBox.Draw()
self._Screen.SwapAndShow()
else:
valid_url= self.raw_github_com(inputed)
if valid_url == False:
self._Screen._MsgBox.SetText("Warehouse existed!")
self._Screen._MsgBox.SetText("Warehouse url error!")
self._Screen._MsgBox.Draw()
self._Screen.SwapAndShow()
else: