Mercurial > minori
diff src/gui/window.cc @ 413:192da585a0a8 default tip
*: fix formatting
the clang-format file was broken andjust using LLVM defaults.
now it's fixed and is more in line with what I actually prefer my
code to look like -- esp. with regards to tabulators
| author | Paper <paper@tflc.us> |
|---|---|
| date | Sat, 25 Jul 2026 14:54:32 -0400 |
| parents | 963047512d34 |
| children |
line wrap: on
line diff
--- a/src/gui/window.cc Sat Jul 25 14:33:03 2026 -0400 +++ b/src/gui/window.cc Sat Jul 25 14:54:32 2026 -0400 @@ -56,9 +56,9 @@ emit Done(files); } -MainWindowAsyncSynchronizeThread::MainWindowAsyncSynchronizeThread(QAction *action, AnimeListPage *page, - QObject *parent) - : QThread(parent) +MainWindowAsyncSynchronizeThread::MainWindowAsyncSynchronizeThread( + QAction *action, AnimeListPage *page, QObject *parent) + : QThread(parent) { SetAction(action); SetPage(page); @@ -226,7 +226,7 @@ sync_action = menu->addAction(tr("Synchronize &list")); connect(sync_action, &QAction::triggered, this, - [this, sync_action] { AsyncSynchronize(sync_action, &stack_); }); + [this, sync_action] { AsyncSynchronize(sync_action, &stack_); }); sync_action->setIcon(QIcon(":/icons/24x24/arrow-circle-double-135.png")); sync_action->setShortcut(QKeySequence(Qt::CTRL | Qt::Key_S)); @@ -437,13 +437,13 @@ menu->addAction("MALgraph", [] { QDesktopServices::openUrl(QUrl("https://graph.anime.plus/")); }); menu->addSeparator(); menu->addAction("AniChart", [] { QDesktopServices::openUrl(QUrl("https://anichart.net/airing")); }); - menu->addAction("Monthly.moe", - [] { QDesktopServices::openUrl(QUrl("https://www.monthly.moe/weekly")); }); + menu->addAction( + "Monthly.moe", [] { QDesktopServices::openUrl(QUrl("https://www.monthly.moe/weekly")); }); menu->addAction("Senpai Anime Charts", - [] { QDesktopServices::openUrl(QUrl("https://www.senpai.moe/?mode=calendar")); }); + [] { QDesktopServices::openUrl(QUrl("https://www.senpai.moe/?mode=calendar")); }); menu->addSeparator(); - menu->addAction("Anime Streaming Search Engine", - [] { QDesktopServices::openUrl(QUrl("https://because.moe/")); }); + menu->addAction( + "Anime Streaming Search Engine", [] { QDesktopServices::openUrl(QUrl("https://because.moe/")); }); menu->addAction("The Fansub Database", [] { QDesktopServices::openUrl(QUrl("https://fansubdb.com")); }); button->setMenu(menu); @@ -477,7 +477,7 @@ for (const auto &path : session.config.library.paths) { const QString folder = Strings::ToQString(path); QAction *action = - folder_menu->addAction(folder, [folder] { QDesktopServices::openUrl(QUrl::fromLocalFile(folder)); }); + folder_menu->addAction(folder, [folder] { QDesktopServices::openUrl(QUrl::fromLocalFile(folder)); }); if (i < 9) { /* Qt::Key_1 is equivalent to 1 in ASCII, so we can use the same @@ -495,9 +495,8 @@ { folder_menu->addAction(tr("&Add new folder..."), [this] { - const QString dir = - QFileDialog::getExistingDirectory(this, tr("Open Directory"), QDir::homePath(), - QFileDialog::ShowDirsOnly | QFileDialog::DontResolveSymlinks); + const QString dir = QFileDialog::getExistingDirectory(this, tr("Open Directory"), QDir::homePath(), + QFileDialog::ShowDirsOnly | QFileDialog::DontResolveSymlinks); if (dir.isEmpty()) return; session.config.library.paths.insert(Strings::ToUtf8String(dir));
