Tweaks to stop downloading dialog
This commit is contained in:
		
							parent
							
								
									073754f1f3
								
							
						
					
					
						commit
						a296e38fa1
					
				@ -114,8 +114,8 @@ def stop_pull_model_response(self, dialog, task, model_name):
 | 
			
		||||
def stop_pull_model(self, model_name):
 | 
			
		||||
    #self.pulling_model_list_box.unselect_all()
 | 
			
		||||
    dialog = Adw.AlertDialog(
 | 
			
		||||
        heading=_("Stop Model"),
 | 
			
		||||
        body=_("Are you sure you want to stop pulling '{}'?").format(model_name),
 | 
			
		||||
        heading=_("Stop Download"),
 | 
			
		||||
        body=_("Are you sure you want to stop pulling '{} ({})'?").format(model_name.split(":")[0].capitalize(), model_name.split(":")[1]),
 | 
			
		||||
        close_response="cancel"
 | 
			
		||||
    )
 | 
			
		||||
    dialog.add_response("cancel", _("Cancel"))
 | 
			
		||||
 | 
			
		||||
@ -975,7 +975,7 @@ Generate a title following these rules:
 | 
			
		||||
            vexpand = False,
 | 
			
		||||
            valign = 3,
 | 
			
		||||
            css_classes = ["error", "circular"],
 | 
			
		||||
            tooltip_text = _("Stop Pulling '{}'").format(model.capitalize())
 | 
			
		||||
            tooltip_text = _("Stop Pulling '{} ({})'").format(model.split(':')[0].capitalize(), model.split(':')[1])
 | 
			
		||||
        )
 | 
			
		||||
        button.connect("clicked", lambda button, model_name=model : dialogs.stop_pull_model(self, model_name))
 | 
			
		||||
        model_row.add_suffix(button)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user