diff --git a/UIElements/backgroundMenu.py b/UIElements/backgroundMenu.py index 5ae537a5..96d8389f 100644 --- a/UIElements/backgroundMenu.py +++ b/UIElements/backgroundMenu.py @@ -58,8 +58,7 @@ def reloadBackground(self): self.close() def processBackground(self): - if self.data.backgroundFile == "" or os.path.isdir( - self.data.backgroundFile): + if self.data.backgroundFile == "" or os.path.isdir(self.data.backgroundFile) or not os.path.isfile(self.data.backgroundFile): self.data.backgroundTexture = None self.data.backgroundManualReg = [] self.updateAlignmentInConfig()