mirror of
https://github.com/Murmele/Gittyup.git
synced 2024-09-11 10:45:39 +03:00
Fixes code format according to clang-format
This commit is contained in:
parent
3c92cc0f98
commit
a80ffed278
@ -105,9 +105,12 @@ DoubleTreeWidget::DoubleTreeWidget(const git::Repository &repo, QWidget *parent)
|
||||
});
|
||||
QAction *hideUntrackedFiles = new QAction(tr("Hide Untracked Files"));
|
||||
hideUntrackedFiles->setCheckable(true);
|
||||
hideUntrackedFiles->setChecked(RepoView::parentView(parent)->repo().appConfig().value<bool>("untracked.hide", false));
|
||||
hideUntrackedFiles->setChecked(
|
||||
RepoView::parentView(parent)->repo().appConfig().value<bool>(
|
||||
"untracked.hide", false));
|
||||
connect(hideUntrackedFiles, &QAction::triggered, this, [this](bool checked) {
|
||||
RepoView::parentView(this)->repo().appConfig().setValue("untracked.hide", checked);
|
||||
RepoView::parentView(this)->repo().appConfig().setValue("untracked.hide",
|
||||
checked);
|
||||
RepoView::parentView(this)->refresh();
|
||||
});
|
||||
contextMenu->addAction(singleTree);
|
||||
|
@ -23,7 +23,9 @@ private:
|
||||
|
||||
template <class T, typename TId> QStringList settingsKeys() {
|
||||
QStringList settingsKeys;
|
||||
foreach (const TId id, ids<TId>()) { settingsKeys.append(T::key(id)); }
|
||||
foreach (const TId id, ids<TId>()) {
|
||||
settingsKeys.append(T::key(id));
|
||||
}
|
||||
return settingsKeys;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user