mirror of
				https://github.com/KoboldAI/KoboldAI-Client.git
				synced 2025-06-05 21:59:24 +02:00 
			
		
		
		
	Won't freeze anymore if you delete the prompt
This commit is contained in:
		| @@ -1429,6 +1429,8 @@ def inlinedelete(chunk): | ||||
|     # Don't delete prompt | ||||
|     if(chunk == 0): | ||||
|         # Send error message | ||||
|         refresh_story() | ||||
|         emit('from_server', {'cmd': 'errmsg', 'data': "Cannot delete the prompt."}) | ||||
|         emit('from_server', {'cmd': 'editmode', 'data': 'false'}, broadcast=True) | ||||
|     else: | ||||
|         del vars.actions[chunk-1] | ||||
|   | ||||
| @@ -852,6 +852,7 @@ $(document).ready(function(){ | ||||
| 				}, 5); | ||||
| 			} | ||||
| 			newly_loaded = false; | ||||
| 			hideMessage(); | ||||
| 		} else if(msg.cmd == "scrolldown") { | ||||
| 			setTimeout(function () { | ||||
| 				$('#gamescreen').animate({scrollTop: $('#gamescreen').prop('scrollHeight')}, 1000); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Gnome Ann
					Gnome Ann