mirror of
https://github.com/aome510/spotify-player.git
synced 2026-04-26 17:35:50 +03:00
[PR #422] [MERGED] Decouple configs from application's state #1694
Labels
No labels
bug
documentation
enhancement
good first issue
help wanted
pull-request
question
third-party
third-party
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotify-player#1694
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/aome510/spotify-player/pull/422
Author: @aome510
Created: 4/21/2024
Status: ✅ Merged
Merged: 4/21/2024
Merged by: @aome510
Base:
master← Head:separate-configs-from-state📝 Commits (4)
7f62101move Configs from state module to config module8cc38e0useconfig::get_config()to get the application's configsff2dd6fremove redundantstate: &SharedStateas function's argument905a239cleanup📊 Changes
17 files changed (+193 additions, -263 deletions)
View changed files
📝
spotify_player/src/auth.rs(+2 -2)📝
spotify_player/src/cli/handlers.rs(+4 -3)📝
spotify_player/src/client/handlers.rs(+5 -3)📝
spotify_player/src/client/mod.rs(+24 -23)📝
spotify_player/src/config/mod.rs(+39 -3)📝
spotify_player/src/event/mod.rs(+5 -9)📝
spotify_player/src/event/page.rs(+15 -34)📝
spotify_player/src/event/popup.rs(+2 -4)📝
spotify_player/src/event/window.rs(+10 -25)📝
spotify_player/src/main.rs(+17 -16)📝
spotify_player/src/state/mod.rs(+6 -27)📝
spotify_player/src/streaming.rs(+3 -2)📝
spotify_player/src/ui/mod.rs(+5 -4)📝
spotify_player/src/ui/page.rs(+21 -49)📝
spotify_player/src/ui/playback.rs(+18 -20)📝
spotify_player/src/ui/popup.rs(+13 -36)📝
spotify_player/src/ui/utils.rs(+4 -3)📄 Description
Changes
configs: Configsfrom application'sStatestructconfig::CONFIGSas a global static variable representing the application's configsconfig::get_configto get a static reference ofconfig::CONFIGSandconfig::set_configto set the global variable🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.