Merge pull request #314 from cuu/master

warehouse bug fix of adding URL repeatedly
This commit is contained in:
GNU 2019-12-25 14:16:48 +08:00 committed by GitHub
commit 708c863a33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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: