|  |  |  | @ -15,9 +15,6 @@ class TxtTocRuleViewModel(app: Application) : BaseViewModel(app) { | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     fun save(txtTocRule: TxtTocRule) { | 
			
		
	
		
			
				
					|  |  |  |  |         execute { | 
			
		
	
		
			
				
					|  |  |  |  |             if (txtTocRule.serialNumber < 0) { | 
			
		
	
		
			
				
					|  |  |  |  |                 txtTocRule.serialNumber = appDb.txtTocRuleDao.maxOrder + 1 | 
			
		
	
		
			
				
					|  |  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |  |             appDb.txtTocRuleDao.insert(txtTocRule) | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |     } | 
			
		
	
	
		
			
				
					|  |  |  | 
 |