mirror of
https://github.com/Murmele/Gittyup.git
synced 2024-09-11 02:35:41 +03:00
Clang format
This commit is contained in:
parent
7fa407d900
commit
6e0ae4c339
@ -565,8 +565,10 @@ public:
|
||||
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);
|
||||
});
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user