mirror of
https://github.com/Insality/druid.git
synced 2025-09-27 18:12:19 +02:00
Add list of druid instances, add global events: on_window_callback, on_layout_change and on_language_change
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user