Fix settings derp and app start project theme loading (#3320)
* Fix settings opening and messing up everything * Set settings aggressively for startup project theme loading * fmt --------- Co-authored-by: Lee <lee@Lees-Mac-mini.local>
This commit is contained in:
@ -88,7 +88,7 @@ export function LowerRightControls({
|
|||||||
<Link
|
<Link
|
||||||
to={
|
to={
|
||||||
location.pathname.includes(paths.FILE)
|
location.pathname.includes(paths.FILE)
|
||||||
? filePath + paths.SETTINGS
|
? filePath + paths.SETTINGS + '?tab=project'
|
||||||
: paths.HOME + paths.SETTINGS
|
: paths.HOME + paths.SETTINGS
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
|
@ -105,6 +105,8 @@ export function useSetupEngineManager(
|
|||||||
}, [immediateState])
|
}, [immediateState])
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
engineCommandManager.settings.theme = settings.theme
|
||||||
|
|
||||||
const handleResize = deferExecution(() => {
|
const handleResize = deferExecution(() => {
|
||||||
const { width, height } = getDimensions(
|
const { width, height } = getDimensions(
|
||||||
streamRef?.current?.offsetWidth ?? 0,
|
streamRef?.current?.offsetWidth ?? 0,
|
||||||
|
Reference in New Issue
Block a user