Skip to content

Commit

Permalink
Clang format
Browse files Browse the repository at this point in the history
  • Loading branch information
monks-dev authored and Murmele committed Apr 20, 2024
1 parent 7fa407d commit 6e0ae4c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions src/dialogs/SettingsDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down
6 changes: 3 additions & 3 deletions src/ui/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 6e0ae4c

Please sign in to comment.