Keep workspace presentation in numeric order
This commit is contained in:
1 parent
b2363a18b0
commit
ae712b6b40
7 files changed
+59
-29
No files matched your search
@@ -272,6 +272,12 @@ impl Dispatch<FereseShellV1, ()> for ControlState {
|
||||
ferese_shell_v1::Event::SnapshotEnd { serial }
|
||||
if state.serial.take() == Some(serial) =>
|
||||
{
|
||||
state.pending.workspaces.sort_unstable_by_key(|workspace| {
|
||||
ferese_core::workspace_order_key(
|
||||
&workspace.name,
|
||||
ferese_core::WorkspaceId(workspace.id),
|
||||
)
|
||||
});
|
||||
let _ = state
|
||||
.sender
|
||||
.send(ControlUpdate::Snapshot(state.pending.clone()));
|
||||
|
||||
Reference in new issue
Block a user