Skip to content

Commit d824556

Browse files
committed
mainwindow: fix some comments and a static call
Signed-off-by: Patrizio Bekerle <patrizio@bekerle.com>
1 parent 4e58013 commit d824556

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/mainwindow.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1516,24 +1516,24 @@ bool MainWindow::isInDistractionFreeMode() {
15161516
* Toggles the distraction free mode
15171517
*/
15181518
void MainWindow::toggleDistractionFreeMode() {
1519-
// leave the one column mode if active
1519+
// Leave the one-column mode if active
15201520
if (ui->actionUse_one_column_mode->isChecked()) {
15211521
ui->actionUse_one_column_mode->toggle();
15221522
}
15231523

15241524
SettingsService settings;
1525-
bool isInDistractionFreeMode = this->isInDistractionFreeMode();
1525+
bool isInDistractionFreeMode = MainWindow::isInDistractionFreeMode();
15261526

15271527
qDebug() << __func__ << " - 'isInDistractionFreeMode': " << isInDistractionFreeMode;
15281528

1529-
// store the window settings before we go into distraction free mode
1529+
// Store the window settings before we go into distraction-free mode
15301530
if (!isInDistractionFreeMode) {
15311531
storeSettings();
15321532
}
15331533

15341534
isInDistractionFreeMode = !isInDistractionFreeMode;
15351535

1536-
// remember that we were using the distraction free mode
1536+
// Remember that we were using the distraction-free mode
15371537
settings.setValue(QStringLiteral("DistractionFreeMode/isEnabled"), isInDistractionFreeMode);
15381538

15391539
setDistractionFreeMode(isInDistractionFreeMode);

0 commit comments

Comments
 (0)