diff include/gui/pages/now_playing.h @ 383:27c462bc7815

make the "Now Playing" page actually work
author Paper <paper@tflc.us>
date Thu, 06 Nov 2025 07:10:58 -0500
parents abd956418fe9
children e89901683d72
line wrap: on
line diff
--- a/include/gui/pages/now_playing.h	Thu Nov 06 03:16:55 2025 -0500
+++ b/include/gui/pages/now_playing.h	Thu Nov 06 07:10:58 2025 -0500
@@ -12,6 +12,7 @@
 
 #include <memory>
 #include <unordered_map>
+#include <cstdint>
 
 
 namespace Anime {
@@ -82,7 +83,9 @@
 	};
 
 	QStackedWidget stack_;
-	QTimer timer_;
+	/* Time the episode started playing (roughly)
+	 * This is -1 if there is no episode playing */
+	std::int64_t timer_ = -1;
 
 	NowPlayingPages::Default default_;
 	NowPlayingPages::Playing playing_;