From 6e0ae4c3396ad0f513ccb4ef4f760777e861c68f Mon Sep 17 00:00:00 2001 From: monks-dev Date: Fri, 22 Mar 2024 01:00:38 -0400 Subject: [PATCH] Clang format --- src/dialogs/SettingsDialog.cpp | 6 ++++-- src/ui/MainWindow.cpp | 6 +++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/dialogs/SettingsDialog.cpp b/src/dialogs/SettingsDialog.cpp index 121ada359..a246755db 100644 --- a/src/dialogs/SettingsDialog.cpp +++ b/src/dialogs/SettingsDialog.cpp @@ -565,8 +565,10 @@ class WindowPanel : public QWidget { connect(showAvatars, &QCheckBox::toggled, [](bool checked) { Settings::instance()->setValue(Setting::Id::ShowAvatars, checked); }); - QCheckBox *showMaximized = new QCheckBox(tr("Show Window Maximized when opened")); - showMaximized->setChecked(settings->value(Setting::Id::ShowMaximized).toBool()); + QCheckBox *showMaximized = + new QCheckBox(tr("Show Window Maximized when opened")); + showMaximized->setChecked( + settings->value(Setting::Id::ShowMaximized).toBool()); connect(showMaximized, &QCheckBox::toggled, [](bool checked) { Settings::instance()->setValue(Setting::Id::ShowMaximized, checked); }); diff --git a/src/ui/MainWindow.cpp b/src/ui/MainWindow.cpp index ba8dae4d4..5b6971a90 100644 --- a/src/ui/MainWindow.cpp +++ b/src/ui/MainWindow.cpp @@ -388,14 +388,14 @@ MainWindow *MainWindow::open(const git::Repository &repo) { MainWindow *window = new MainWindow(repo); const bool showMaximized = - Settings::instance()->value(Setting::Id::ShowMaximized).toBool(); + Settings::instance()->value(Setting::Id::ShowMaximized).toBool(); - if(showMaximized) { + if (showMaximized) { window->showMaximized(); } else { window->show(); } - + return window; }