Add list of druid instances, add global events: on_window_callback, on_layout_change and on_language_change

This commit is contained in:
Insality
2020-04-18 01:41:28 +03:00
parent b9b67c55d6
commit f02c68242a
5 changed files with 115 additions and 10 deletions

View File

@@ -1,4 +1,4 @@
local const = require("druid.const")
local druid = require("druid.druid")
local M = {}
@@ -47,7 +47,7 @@ end
function M.toggle_locale()
data = data == en and ru or en
msg.post("/gui#main", const.ON_CHANGE_LANGUAGE)
druid.on_language_change()
end
return M