From ffebebefe7a045fd59fdf3d3e49ec95bb11e8f38 Mon Sep 17 00:00:00 2001 From: John Beard Date: Mon, 14 Oct 2024 01:49:58 +0800 Subject: [PATCH] Lib edit tree: add read-only as a suffix It's not ideal, because it will easily go off the right edge, but the proper solution proably involves something involved like little indicator icons in the tree or something. This should be something of a clue at least some of the time. --- eeschema/symbol_tree_synchronizing_adapter.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/eeschema/symbol_tree_synchronizing_adapter.cpp b/eeschema/symbol_tree_synchronizing_adapter.cpp index 5573958f29..08eb7f5fb9 100644 --- a/eeschema/symbol_tree_synchronizing_adapter.cpp +++ b/eeschema/symbol_tree_synchronizing_adapter.cpp @@ -270,6 +270,8 @@ void SYMBOL_TREE_SYNCHRONIZING_ADAPTER::GetValue( wxVariant& aVariant, wxDataVie if( !m_libMgr->IsLibraryLoaded( node->m_Name ) ) aVariant = _( "(failed to load)" ) + wxS( " " ) + aVariant.GetString(); + else if( m_libMgr->IsLibraryReadOnly( node->m_Name ) ) + aVariant = _( "(read-only)" ) + wxS( " " ) + aVariant.GetString(); } const wxString& key = m_colIdxMap.at( aCol );