Port #5212: format the Playback Options engine change

Co-Authored-By: Zer0C00L01 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
committed 2026-11-05 06:13:12 +01:00
1 parent eaa1b7c06e
commit b3ff05ecb7
2 files changed
+6 -4

No files matched your search

+3 -1
View File
@@ -978,7 +978,9 @@ fn set_playback(s: &mut Session, p: &Value) -> Result<Value> {
}
let performance = match p.get("performance") {
None => None,
Some(v) => Some(v.as_str().and_then(crate::prefs::PlaybackPerformance::parse).ok_or_else(|| bad(CMD, "performance must be accelerated, step or pause"))?),
Some(v) => {
Some(v.as_str().and_then(crate::prefs::PlaybackPerformance::parse).ok_or_else(|| bad(CMD, "performance must be accelerated, step or pause"))?)
}
};
let range = crate::prefs::Actions::PAUSE_SECONDS;
let seconds = match p.get("seconds") {
+3 -3
View File
@@ -1,9 +1,9 @@
use super::shortcuts::normalize_shortcut;
use super::{
AppearanceMode, Ask, CanvasBorder, CanvasColor, CheckerColors, CheckerSize, ColorPicker, DarkTheme, ExportLocation, ExportMetadata, FontPreview,
GpuBackend, Interpolation, LightTheme, LineStyle, LinuxDisplayServer, LogDestination, LogDetail, OtherCursor, PaintingCursor, PointSize, PressureCurve,
PlaybackPerformance, QuickExportFormat, RawColorSpace, RawDemosaic, RawDepth, RawSharpen, RenderingMode, RightClickPaint, TextEngine, Theme, TypeUnit, UiFontSize, UiScale,
Unit, Value,
GpuBackend, Interpolation, LightTheme, LineStyle, LinuxDisplayServer, LogDestination, LogDetail, OtherCursor, PaintingCursor, PlaybackPerformance,
PointSize, PressureCurve, QuickExportFormat, RawColorSpace, RawDemosaic, RawDepth, RawSharpen, RenderingMode, RightClickPaint, TextEngine, Theme, TypeUnit,
UiFontSize, UiScale, Unit, Value,
};
/// Preferences dialog sections in Photoshop's order: (id, title).