Possible fix for repeating changelogs
This commit is contained in:
		
							parent
							
								
									1d1676de2e
								
							
						
					
					
						commit
						d6715f1aec
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		|  | @ -175,7 +175,9 @@ std::unique_ptr<Changelogs> Changelogs::Create( | ||||||
| 	const auto oldVersion = local.oldVersion(); | 	const auto oldVersion = local.oldVersion(); | ||||||
| 	const auto oldKotatoVersion = Local::oldKotatoVersion(); | 	const auto oldKotatoVersion = Local::oldKotatoVersion(); | ||||||
| 	local.clearOldVersion(); | 	local.clearOldVersion(); | ||||||
| 	return (!cKotatoFirstRun() && oldKotatoVersion < AppKotatoVersion) | 	return (!cKotatoFirstRun() | ||||||
|  | 		&& oldVersion != 0 | ||||||
|  | 		&& oldKotatoVersion < AppKotatoVersion) | ||||||
| 		? std::make_unique<Changelogs>(session, oldVersion, oldKotatoVersion) | 		? std::make_unique<Changelogs>(session, oldVersion, oldKotatoVersion) | ||||||
| 		: nullptr; | 		: nullptr; | ||||||
| } | } | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue