Closing the picker gives open text the keys back; colour edits wait for text editing (12.14d2)

This commit is contained in:
雷电芽衣 committed 2026-09-30 06:16:28 -04:00
1 parent 27a4fe8428
commit aa5a44e517
10 files changed
+217 -10

No files matched your search

+1 -1
View File
@@ -122,7 +122,7 @@ void EditorSession::deleteLayerOrMask()
bool EditorSession::canInvert() const
{
const std::optional<ImageLayer> layer = activeLayer();
if (!m_document || !layer || m_isProjectBusy || m_isImporting || m_brushStroke || m_pixelMove || m_renamingLayerID || m_showsNewDocument || m_showsImporter
if (!m_document || m_textDraft || !layer || m_isProjectBusy || m_isImporting || m_brushStroke || m_pixelMove || m_renamingLayerID || m_showsNewDocument || m_showsImporter
|| m_selectedLayerIDs.size() != 1 || (layer->isGroup && !m_isMaskSelected) || !m_document->effectiveVisibleIDs().contains(layer->id))
return false;
const std::optional<DocumentSelection> current = selection();