Reworked statistics

This commit is contained in:
Ultradesu
2026-07-26 01:41:16 +03:00
parent 17eb6a4fee
commit ada18a4583
14 changed files with 957 additions and 216 deletions
+9
View File
@@ -64,6 +64,8 @@ pub enum Effect {
DeviceSetName(String),
/// Revoke a trusted device.
DeviceRevoke(String),
/// Leave the current personal-device group after publishing self-revoke.
DeviceLeaveGroup,
/// Assemble the federated artist card (fan-out to the owning peers).
FedOpenArtist(String),
/// Download federated tracks into the local library, one by one.
@@ -2625,6 +2627,13 @@ fn federation_select(state: &mut AppState) -> Option<Effect> {
}
Some(Effect::DeviceSyncNow)
}
SettingsRow::DeviceLeaveGroup => {
if !require_connected_devices_enabled(state) {
return None;
}
state.popup = Some(Popup::ConfirmDeviceLeave);
None
}
SettingsRow::Device(index) => {
if !require_connected_devices_enabled(state) {
return None;