mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-03 06:31:42 +01:00
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:
1 parent
eaa1b7c06e
commit
b3ff05ecb7
2 files changed
+6
-4
No files matched your search
@@ -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") {
|
||||
|
||||
@@ -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).
|
||||
|
||||
Reference in new issue
Block a user