forked from 27hrs/dsh-long-skin
fix: default to max dark frame on load to avoid white flash
This commit is contained in:
@@ -764,8 +764,10 @@ var SkinPresenter = class {
|
||||
portrait;
|
||||
preloads;
|
||||
enabled = true;
|
||||
frame = 0;
|
||||
pendingFrame = 0;
|
||||
// Default to the max frame so the first paint after load is the dark shell;
|
||||
// starting at 0 flashed the light palette before the directory resolved.
|
||||
frame = PREVIEW_MAX_FRAME;
|
||||
pendingFrame = PREVIEW_MAX_FRAME;
|
||||
raf = 0;
|
||||
disposed = false;
|
||||
unsubscribe;
|
||||
@@ -951,7 +953,7 @@ function LiangEffortSlider({ directory, load, select, presenter, scope }) {
|
||||
reasoning?.selection.reasoningEffort,
|
||||
reasoning?.defaultEffort
|
||||
);
|
||||
const committedFrame = committedIndex < 0 ? 0 : frameForEffort(committedIndex, efforts.length);
|
||||
const committedFrame = committedIndex < 0 ? PREVIEW_MAX_FRAME : frameForEffort(committedIndex, efforts.length);
|
||||
const [frame, setFrame] = (0, import_react.useState)(committedFrame);
|
||||
const [pending, setPending] = (0, import_react.useState)(false);
|
||||
const [failed, setFailed] = (0, import_react.useState)(false);
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user