diff src/gui/window.cpp @ 15:cde8f67a7c7d

*: update, megacommit :)
author Paper <mrpapersonic@gmail.com>
date Tue, 19 Sep 2023 22:36:08 -0400
parents 4b198a111713
children 2743011a6042
line wrap: on
line diff
--- a/src/gui/window.cpp	Tue Sep 19 16:33:07 2023 -0400
+++ b/src/gui/window.cpp	Tue Sep 19 22:36:08 2023 -0400
@@ -1,13 +1,13 @@
 #include "gui/window.h"
 #include "core/config.h"
 #include "core/session.h"
-#include "services/services.h"
 #include "gui/dialog/settings.h"
 #include "gui/pages/anime_list.h"
 #include "gui/pages/now_playing.h"
 #include "gui/pages/statistics.h"
 #include "gui/sidebar.h"
 #include "gui/ui_utils.h"
+#include "services/services.h"
 #include <QApplication>
 #include <QFile>
 #include <QMainWindow>
@@ -16,15 +16,11 @@
 #include <QStackedWidget>
 #include <QTextStream>
 #if MACOSX
-#include "sys/osx/dark_theme.h"
+#	include "sys/osx/dark_theme.h"
 #elif WIN32
-#include "sys/win32/dark_theme.h"
+#	include "sys/win32/dark_theme.h"
 #endif
 
-/* note that this code was originally created for use in
-   wxWidgets, but I thought the API was a little meh, so
-   I switched to Qt. */
-
 enum class Pages {
 	NOW_PLAYING,
 
@@ -86,7 +82,7 @@
 	menu = menubar->addMenu("&Services");
 	action = menu->addAction("Synchronize &list", [this, stack] {
 		Services::Synchronize();
-		((AnimeListWidget*)stack->widget((int)Pages::ANIME_LIST))->RefreshList();
+		((AnimeListWidget*)stack->widget((int)Pages::ANIME_LIST))->Refresh();
 	});
 
 	menu->addSeparator();