Compare commits
	
		
			2 Commits
		
	
	
		
			66cd5c4a7e
			...
			1e34f91ebd
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 1e34f91ebd | |||
| 35cb2ece9f | 
@@ -243,7 +243,7 @@ void PaletteEditorImGui::drawColorEditor() noexcept {
 | 
				
			|||||||
	auto const¤tName = m_pal.colorNames[m_selectedColorRow];
 | 
						auto const¤tName = m_pal.colorNames[m_selectedColorRow];
 | 
				
			||||||
	ox::IString<50> name;
 | 
						ox::IString<50> name;
 | 
				
			||||||
	name = currentName;
 | 
						name = currentName;
 | 
				
			||||||
	ImGui::InputText("Name", name.data(), name.cap() + 1);
 | 
						auto const nameUpdated = ImGui::InputText("Name", name.data(), name.cap() + 1);
 | 
				
			||||||
	bool inputFocused = ImGui::IsItemFocused();
 | 
						bool inputFocused = ImGui::IsItemFocused();
 | 
				
			||||||
	ImGui::Separator();
 | 
						ImGui::Separator();
 | 
				
			||||||
	colorInput("Red", r, inputFocused);
 | 
						colorInput("Red", r, inputFocused);
 | 
				
			||||||
@@ -269,9 +269,9 @@ void PaletteEditorImGui::drawColorEditor() noexcept {
 | 
				
			|||||||
	if (c != newColor) {
 | 
						if (c != newColor) {
 | 
				
			||||||
		std::ignore = pushCommand<UpdateColorCommand>(m_pal, m_page, m_selectedColorRow, newColor);
 | 
							std::ignore = pushCommand<UpdateColorCommand>(m_pal, m_page, m_selectedColorRow, newColor);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	if (currentName != name) {
 | 
						if (nameUpdated) {
 | 
				
			||||||
		std::ignore = pushCommand<UpdateColorInfoCommand>(
 | 
							std::ignore = pushCommand<UpdateColorInfoCommand>(
 | 
				
			||||||
				m_pal, m_selectedColorRow, ox::String{name});
 | 
									m_pal, m_selectedColorRow, ox::String{name.data()});
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user