* @brief Returns the metadata map for the currently selected extension. */
| 198 | * @brief Returns the metadata map for the currently selected extension. |
| 199 | */ |
| 200 | QVariantMap Misc::ExtensionManager::selectedExtension() const |
| 201 | { |
| 202 | if (m_selectedIndex >= 0 && m_selectedIndex < m_filteredExtensions.count()) |
| 203 | return m_filteredExtensions.at(m_selectedIndex).toMap(); |
| 204 | |
| 205 | return {}; |
| 206 | } |
| 207 | |
| 208 | /** |
| 209 | * @brief Returns whether the given URL points to a local directory. |
no test coverage detected