fix(desktop): remove native batch export item

This commit is contained in:
Kayshen-X 2026-07-30 01:52:44 +08:00
parent 7f953dfdf7
commit 9a09d3cdbe
2 changed files with 1 additions and 15 deletions

View file

@ -31,8 +31,6 @@ pub enum MenuAction {
Save,
SaveAs,
Export,
/// File ▸ Export All Frames… — one PNG per top-level frame.
ExportAllFrames,
Undo,
Redo,
Cut,
@ -81,7 +79,6 @@ mod backend {
const ID_SAVE: &str = "save";
const ID_SAVE_AS: &str = "save-as";
const ID_EXPORT: &str = "export";
const ID_EXPORT_ALL_FRAMES: &str = "export-all-frames";
const ID_UNDO: &str = "undo";
const ID_REDO: &str = "redo";
const ID_CUT: &str = "cut";
@ -115,7 +112,6 @@ mod backend {
ID_SAVE => MenuAction::Save,
ID_SAVE_AS => MenuAction::SaveAs,
ID_EXPORT => MenuAction::Export,
ID_EXPORT_ALL_FRAMES => MenuAction::ExportAllFrames,
ID_UNDO => MenuAction::Undo,
ID_REDO => MenuAction::Redo,
ID_CUT => MenuAction::Cut,
@ -222,7 +218,6 @@ mod backend {
tr(locale, "menu.exportImage"),
Some(accel_shift(Code::KeyP)),
),
&item(ID_EXPORT_ALL_FRAMES, "Export All Frames\u{2026}", None),
]);
let _ = menu.append(&file);
@ -389,6 +384,7 @@ mod backend {
#[test]
fn an_unknown_id_maps_to_nothing() {
assert!(action_for_id("predefined-separator").is_none());
assert!(action_for_id("export-all-frames").is_none());
assert!(action_for_id("").is_none());
}

View file

@ -135,16 +135,6 @@ impl DesktopApp {
);
true
}
A::ExportAllFrames => {
self.host.commit_variable_row_focus_if_any_pub();
persistence::run_action(
op_editor_core::editor_ui_state::FileAction::ExportAllFrames,
&mut self.host,
&mut self.current_path,
self.window.as_ref(),
);
true
}
A::Undo => self.collab_runtime.request_undo(&mut self.host) || self.host.apply_undo(),
A::Redo => self.collab_runtime.reject_redo(&mut self.host) || self.host.apply_redo(),
// Route through the input-aware dispatch (not the raw