mirror of
				https://github.com/gnif/LookingGlass.git
				synced 2025-10-31 12:42:02 +00:00 
			
		
		
		
	[client] egl: correctly select the preset when saving over it
This commit is contained in:
		| @@ -286,6 +286,17 @@ static void savePresetAs(struct EGL_PostProcess * this) | ||||
| { | ||||
|   if (!savePreset(this, this->presetEdit)) | ||||
|     return; | ||||
|  | ||||
|   for (unsigned i = 0; i < stringlist_count(this->presets); ++i) | ||||
|   { | ||||
|     DEBUG_INFO("Saw preset: %s", stringlist_at(this->presets, i)); | ||||
|     if (strcmp(stringlist_at(this->presets, i), this->presetEdit) == 0) | ||||
|     { | ||||
|       this->activePreset = i; | ||||
|       return; | ||||
|     } | ||||
|   } | ||||
|  | ||||
|   this->activePreset = stringlist_push(this->presets, strdup(this->presetEdit)); | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Quantum
					Quantum