Skip to content

Commit

Permalink
Add a checks to see if more than one SDK or Simulator versions are in…
Browse files Browse the repository at this point in the history
…stalled. If not, select the version automatically and don't prompt the user
  • Loading branch information
thisishuey committed Mar 16, 2014
1 parent e8b0fae commit e68b5ab
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions Titanium.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,10 +252,13 @@ def select_ios_simtype(self, select):

def prompt_ios_sdkversion(self):
if not self.iosVersion:
sdk_version_list = []
for sdk_version in self.sdkvers:
sdk_version_list.append("iOS SDK: " + sdk_version)
self.show_quick_panel(sdk_version_list, self.select_ios_sdkversion)
if len(self.sdkvers) == 1:
self.select_ios_sdkversion(0)
else:
sdk_version_list = []
for sdk_version in self.sdkvers:
sdk_version_list.append("iOS SDK: " + sdk_version)
self.show_quick_panel(sdk_version_list, self.select_ios_sdkversion)
else:
self.prompt_ios_simversion()

Expand All @@ -267,10 +270,13 @@ def select_ios_sdkversion(self, select):

def prompt_ios_simversion(self):
if not self.iosSimVersion:
sim_version_list = []
for sim_version in self.simvers:
sim_version_list.append("iOS Simulator: " + sim_version)
self.show_quick_panel(sim_version_list, self.select_ios_simversion)
if len(self.simvers) == 1:
self.select_ios_simversion(0)
else:
sim_version_list = []
for sim_version in self.simvers:
sim_version_list.append("iOS Simulator: " + sim_version)
self.show_quick_panel(sim_version_list, self.select_ios_simversion)
else:
self.run_ios_simulator()

Expand Down

0 comments on commit e68b5ab

Please sign in to comment.