mirror of
https://github.com/ihaveamac/custom-install.git
synced 2025-12-06 06:41:45 +00:00
ci-gui: prevent adding a file twice
This commit is contained in:
@@ -450,6 +450,8 @@ class CustomInstallGUI(ttk.Frame):
|
|||||||
|
|
||||||
def add_cia(self, path):
|
def add_cia(self, path):
|
||||||
path = abspath(path)
|
path = abspath(path)
|
||||||
|
if path in self.readers:
|
||||||
|
return False, 'File already in list'
|
||||||
try:
|
try:
|
||||||
reader = CustomInstall.get_reader(path)
|
reader = CustomInstall.get_reader(path)
|
||||||
except (CIAError, CDNError, TitleMetadataError):
|
except (CIAError, CDNError, TitleMetadataError):
|
||||||
|
|||||||
Reference in New Issue
Block a user