Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

show info rggrip not found #204

Closed
wants to merge 3 commits into from

Conversation

Montel
Copy link
Contributor

@Montel Montel commented Oct 24, 2024

  • fix: fix crash when we create a new rc file (language is empty => assert)
  • feat: show info/disable line when Ripgrep not found

@Montel Montel requested a review from narnaud October 24, 2024 14:14
@narnaud
Copy link
Member

narnaud commented Oct 24, 2024

There are 3 commits in this PR...

src/gui/findinfilespanel.h Show resolved Hide resolved
@@ -35,7 +50,7 @@ class FindInFilesPanel : public QWidget
void setupToolBar();

QWidget *const m_toolBar;
QTreeWidget *m_resultsDisplay;
FindInFilesTreeWidget *m_resultsDisplay;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could stay a QTreeWidget here, if you move the check to the widget constructor

@@ -45,6 +46,9 @@ FindInFilesPanel::FindInFilesPanel(QWidget *parent)
connect(m_resultsDisplay, &QTreeWidget::itemActivated, this, [this](QTreeWidgetItem *item, int) {
openFileAtItem(item);
});
const bool available = Core::Project::instance()->isFindInFilesAvailable();
m_searchInput->setEnabled(available);
m_resultsDisplay->setFindInFilesAvailable(available);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think you need this here. Just put the check int he FindInFilesTreeWidget constructor, and leave the input enabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants