message: Move file manager command setting to tools panel
diff: @@ -126,8 +126,6 @@ public:
  AboutDialog::openSharedInstance(AboutDialog::Privacy);
  });
  - mFileManagerCommand = new QLineEdit(this);
  -
  QFormLayout *form = new QFormLayout;
  form->addRow(tr("User name:"), mName);
  form->addRow(tr("User email:"), mEmail);
  @@ -138,7 +136,6 @@ public:
  form->addRow(tr("Credentials:"), mStoreCredentials);
  form->addRow(tr("Usage reporting:"), mUsageReporting);
  form->addRow(QString(), privacy);
  - form->addRow(tr("File manager command:"), mFileManagerCommand);
  QVBoxLayout *layout = new QVBoxLayout(this);
  layout->setContentsMargins(16,12,16,12);
  @@ -188,10 +185,6 @@ public:
  connect(mUsageReporting, &QCheckBox::toggled, [](bool checked) {
  Settings::instance()->setValue("tracking/enabled", checked);
  });
  -
  - connect(mFileManagerCommand, &QLineEdit::textChanged, [](const QString &text) {
  - Settings::instance()->setValue("filemanager/command", text);
  - });
  }
  void init()
  @@ -214,8 +207,6 @@ public:
  mStoreCredentials->setChecked(settings->value("credential/store").toBool());
  mUsageReporting->setChecked(settings->value("tracking/enabled").toBool());
  -
  - mFileManagerCommand->setText(settings->value("filemanager/command").toString());
  }
  private:
  @@ -229,8 +220,6 @@ private:
  QCheckBox *mAutoPrune;
  QCheckBox *mStoreCredentials;
  QCheckBox *mUsageReporting;
  -
  - QLineEdit *mFileManagerCommand;
  };
  class ToolsPanel : public QWidget
  @@ -269,6 +258,14 @@ public:
  layout->addRow(tr("External diff:"), diffTool);
  layout->addRow(tr("External merge:"), mergeTool);
  layout->addRow(tr("Backup files:"), backup);
  +
  + QLineEdit *mFileManagerCommand = new QLineEdit(this);
  + layout->addRow(tr("File manager command:"), mFileManagerCommand);
  +
  + connect(mFileManagerCommand, &QLineEdit::textChanged, [](const QString &text) {
  + Settings::instance()->setValue("filemanager/command", text);
  + });
  + mFileManagerCommand->setText(Settings::instance()->value("filemanager/command").toString());
  }
  private:
  