From afeb24cfd2dd9df7b20f039a12095a5d6c3a0e1c Mon Sep 17 00:00:00 2001 From: Yousef Khadadeh Date: Tue, 8 Jul 2025 15:17:57 +0300 Subject: [PATCH] Save transition easing in settings --- src/Toolbar.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Toolbar.cpp b/src/Toolbar.cpp index 305d3b3..593ad00 100644 --- a/src/Toolbar.cpp +++ b/src/Toolbar.cpp @@ -220,6 +220,7 @@ nlohmann::json Toolbar::get_config_json() { toRet["useNativeFilePicker"] = useNativeFilePicker; toRet["themeInUse"] = themeData.themeCurrentlyLoaded; toRet["velocityAffectsBrushWidth"] = velocityAffectsBrushWidth; + toRet["jumpTransitionEasing"] = jumpTransitionEasing; json tablet; tablet["pressureAffectsBrushWidth"] = tabletOptions.pressureAffectsBrushWidth; @@ -269,6 +270,7 @@ void Toolbar::set_config_json(const nlohmann::json& j) { j.at("useNativeFilePicker").get_to(useNativeFilePicker); j.at("themeInUse").get_to(themeData.themeCurrentlyLoaded); j.at("velocityAffectsBrushWidth").get_to(velocityAffectsBrushWidth); + j.at("jumpTransitionEasing").get_to(jumpTransitionEasing); j.at("tablet").at("pressureAffectsBrushWidth").get_to(tabletOptions.pressureAffectsBrushWidth); j.at("tablet").at("smoothingSamplingTime").get_to(tabletOptions.smoothingSamplingTime);