def on_sub_model_changed(self): print("ModelGroup.on_sub_model_change\n") if self.sub_model_updating: print("sub model list is currently updating") return index = self.sub_model_choice.get_index() # if index == 0: # # The default model (A500) can be specified with the empty string # model = "" # else: model = self.model_ids[self.model_choice.get_index()] sub_model = self.sub_model_ids[index] if sub_model: LauncherConfig.set("amiga_model", model + "/" + sub_model) else: LauncherConfig.set("amiga_model", model) if Amiga.is_cd_based(LauncherConfig): FloppyManager.clear_all() else: CDManager.clear_all()
def update_media_type(self): self.set_cd_mode(Amiga.is_cd_based(LauncherConfig))