fix: null setting when cancelling prompt
This commit is contained in:
		
							parent
							
								
									1ce493fe58
								
							
						
					
					
						commit
						7fd3e70099
					
				
							
								
								
									
										3
									
								
								main.js
								
								
								
								
							
							
						
						
									
										3
									
								
								main.js
								
								
								
								
							| 
						 | 
					@ -947,6 +947,8 @@ function editsetting(name)
 | 
				
			||||||
		if (type != "undefined")
 | 
							if (type != "undefined")
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			value = prompt(name, value);
 | 
								value = prompt(name, value);
 | 
				
			||||||
 | 
								if (value !== null)
 | 
				
			||||||
 | 
								{
 | 
				
			||||||
				if (type == "number")
 | 
									if (type == "number")
 | 
				
			||||||
				{
 | 
									{
 | 
				
			||||||
					value = parseInt(value);
 | 
										value = parseInt(value);
 | 
				
			||||||
| 
						 | 
					@ -960,6 +962,7 @@ function editsetting(name)
 | 
				
			||||||
				loadsettings();
 | 
									loadsettings();
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function changesetting()
 | 
					function changesetting()
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue