Commit graph

151 commits

Author SHA1 Message Date
a4fa2c7f75 Moved track and playlist opening related gui functions to the popups class. 2025-03-01 22:42:31 +01:00
cdabced202 Added gui-update-rate-setting. 2025-03-01 20:39:09 +01:00
df54239d67 Made the title of the sub-categories bold. 2025-03-01 20:11:57 +01:00
53c6bccfe6 Improved settings layout. 2025-03-01 20:03:33 +01:00
012447ca47 Added player.stop() call in the close_event, so the player definitely stops, even when a playlist is still loading / saving. 2025-03-01 17:29:31 +01:00
8d74c1e14c Optimized the CPU usage a little by creating one QTimer that updates all progress indicators instead of having a different QTimer for each Widget. 2025-03-01 17:27:03 +01:00
105cc5ddf9 Fixed a bug where a playlist gets deleted on load of another playlist.
The bug occurred because the temporary playlist gets deleted when a new playlist gets loaded and I forgot to add code that sets the temporary playlist back to None when the temporary playlist gets renamed.
2025-02-28 19:46:20 +01:00
582448a024 Fixed another crash that was similar to the last one.
The crash occurred when the temporary playlist got deleted and then loaded again. It occurred because library.temporary_playlist didn't get set to None on deletion.
2025-02-28 19:38:29 +01:00
7fdf7a66a9 Fixed #12 2025-02-28 19:28:07 +01:00
5c7f4c4ef7 Implemented importing of playlists via the menubar. 2025-02-28 18:02:37 +01:00
37f1ea3ff8 Fixed another missing NoneType check. 2025-02-28 18:02:06 +01:00
a9f07f0716 Implemented loading of tracks via the window's top menubar. 2025-02-28 17:28:14 +01:00
66ee7d5af6 Added a check to loading_thread() that makes sure that the playlist isn't already loaded. (And probably fixed some bugs without knowing it.) 2025-02-27 18:41:35 +01:00
bae644c304 Just corrected a PEP E714. 2025-02-27 17:58:32 +01:00
3fd29bcf92 Made playlists load on click if they weren't.
Also set default for setting "load_on_start" to False because with this change, it feels a lot cleaner this way and uses less RAM.
2025-02-27 17:26:33 +01:00
faecea8ca7 Added setting of last sort to user sort on user sort. 2025-02-23 18:16:16 +01:00
78b60dba02 Implemented saving of the sortorder to the .wbz.m3u 2025-02-23 18:05:28 +01:00
894b3d213a Made the sort indicator actually show. 2025-02-23 16:43:19 +01:00
7205de8389 Fixed a wrong track index calculation. 2025-02-23 16:40:17 +01:00
3dd9123332 Implemented sorting by track title, artist name etc...
(Sorting order is not getting saved.)
2025-02-23 16:38:56 +01:00
1b69321c05 Added some shit that happens in update_info() when there is no playing track. 2025-02-23 13:57:59 +01:00
2388caa370 Fixed another missing NoneType check. 2025-02-23 13:54:01 +01:00
a23799b6b1 Rearranged some code. 2025-02-22 18:25:17 +01:00
851c2306b4 Fixed another crash that occurred because of an unexpected NoneType in the getting of the playing track's cover. 2025-02-21 20:37:24 +01:00
567afb1866 Fixed another crash by adding a check that makes sure that the current playlist is not NoneType before a current_playlist.has_tracks()-call. 2025-02-21 20:20:35 +01:00
39bd7e3167 Added a "track_info"-toolbar which shows an image found in the current audio file's metadata (usually the front-cover) and information about the currently playing track such as title and artist name. 2025-02-21 17:26:47 +01:00
ccda6b30c8 Added a "View" submenu to the window's menu and an action to the submenu that opens the background processes. 2025-02-20 19:23:31 +01:00
f2f3937fb2 Fixed a bug where the process widget of the playlist loading thread wouldn't get deleted if the playlist was too short.
The bug occurred because the creation of the widget was done through a PyQt-Signal but the deletion occurred in the same thread as the background process.
2025-02-20 19:17:44 +01:00
301896e12c Added loading of playlists to the process-dock. 2025-02-20 18:55:01 +01:00
6786a3dcd8 Did a little reformatting and removed that commented out test code. xD 2025-02-20 18:06:29 +01:00
a81ea15afd Fixed another crash that occurred because of another player.current_playlist.has_tracks()-check when the current playlist was None. 2025-02-20 17:53:03 +01:00
65564deb82 Added option to load playlists on start to the settings. 2025-02-20 17:44:09 +01:00
5dc91f6605 Implemented that the player stops playing when the deleted playlist is the currently playing. 2025-02-20 17:17:26 +01:00
730e070dfc Fixed a bug by setting Playlist.loaded to True on creation of new playlists so creating new playlists works again. 2025-02-19 19:04:36 +01:00
db191cbc44 Made drag n drop activate just when the playlist is fully loaded. 2025-02-19 18:57:23 +01:00
d8f885959b Added some comments. 2025-02-12 14:48:44 +01:00
f377263a0a Fixed a bug where playlists weren't saved when they weren't loaded from a .m3u. 2025-02-12 14:47:24 +01:00
e5b7ebe6e8 Removed border from playlist titles. (slightly noticeable) 2025-02-12 14:21:59 +01:00
3ac97755bf Set the cursor when hovering over a Playlist title to a normal cursor and made the Player start with the last playlist as active tab. 2025-02-12 14:04:11 +01:00
0c2c91389d Playlists now get loaded when they are started and removed debug prints. 2025-02-12 13:50:12 +01:00
0879575882 Made the double click working again. 2025-02-11 17:34:04 +01:00
22ffd211df Got it working, but it's not better than before... 2025-02-04 14:43:08 +01:00
6134c21ce4 Made it working again. 2025-02-04 13:14:15 +01:00
cf1b4bacd1 Added some checks so the player doesnt crash because of things removed in latest commits. 2025-02-04 11:17:35 +01:00
c164201a55 Just moved some code around. 2025-02-03 18:04:04 +01:00
efe10e7d50 Added a comment. 2025-02-03 18:00:42 +01:00
d36326c029 Replaced shit that got removed in the last commit with something better. 2025-02-03 17:59:37 +01:00
bedca22ca6 Removed some mechanic that is going to be reimplemented. 2025-02-03 17:53:35 +01:00
67d353dcef Removed unused import. 2025-02-03 17:26:00 +01:00
6eac6468a0 Decreased the background progress update rate a little. 2025-02-03 14:12:38 +01:00