1 --- caja-1.28.0/src/caja-window.c.orig 2024-02-20 01:30:36.000000000 +0100
2 +++ caja-1.28.0/src/caja-window.c 2024-02-26 08:42:41.082802543 +0100
4 set_allow_up, (window, allow));
8 +caja_window_allow_restore (CajaWindow *window, gboolean enable)
12 + g_assert (CAJA_IS_WINDOW (window));
14 + action = gtk_action_group_get_action (window->details->main_action_group,
15 + CAJA_ACTION_RESTORE);
16 + gtk_action_set_sensitive (action, enable);
20 update_cursor (CajaWindow *window)
24 slot = window->details->active_pane->active_slot;
26 - if (slot->allow_stop)
27 + if (slot && slot->allow_stop)
32 if (slot == window->details->active_pane->active_slot)
34 G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
35 + if (!slot->allow_stop && slot->find_zfs_snapshots_cancellable != NULL)
37 + /* if slot want to stop and snap find is finished/cancel then disable */
38 + if (g_cancellable_is_cancelled (slot->find_zfs_snapshots_cancellable))
40 + gtk_action_set_sensitive (action, slot->allow_stop);
45 gtk_action_set_sensitive (action, slot->allow_stop);
47 G_GNUC_END_IGNORE_DEPRECATIONS;