Skip to content

Commit

Permalink
skip set languageDictionary for canvas on reload
Browse files Browse the repository at this point in the history
Earlier versions of macOS didn't reset some graphics context settings on reload. Doesn't seem to be an issue anymore, but just in case it changes again, keep the language defaults as they were when canvas module *first* loaded, even after reloads.
  • Loading branch information
asmagill authored Mar 26, 2023
1 parent 1352fd6 commit 1973483
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extensions/canvas/libcanvas.m
Original file line number Diff line number Diff line change
Expand Up @@ -4025,7 +4025,7 @@ int luaopen_hs_libcanvas(lua_State* L) {
metaFunctions:nil // or module_metaLib
objectFunctions:userdata_metaLib];

languageDictionary = defineLanguageDictionary() ;
if (!languageDictionary) languageDictionary = defineLanguageDictionary() ;

[skin registerPushNSHelper:pushHSCanvasView forClass:"HSCanvasView"];
[skin registerLuaObjectHelper:toHSCanvasViewFromLua forClass:"HSCanvasView"
Expand Down

0 comments on commit 1973483

Please sign in to comment.