1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Notify users to reinstall MTG if worlds exist (#13850)

This commit is contained in:
Gregor Parzefall 2023-10-08 17:47:00 +02:00 committed by GitHub
parent 26bb397852
commit d05da513be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 274 additions and 56 deletions

View file

@ -38,8 +38,18 @@ local dialog_metatable = {
handle_events = function(self,event)
if not self.hidden then return self.eventhandler(self,event) end
end,
hide = function(self) self.hidden = true end,
show = function(self) self.hidden = false end,
hide = function(self)
if not self.hidden then
self.hidden = true
self.eventhandler(self, "DialogHide")
end
end,
show = function(self)
if self.hidden then
self.hidden = false
self.eventhandler(self, "DialogShow")
end
end,
delete = function(self)
if self.parent ~= nil then
self.parent:show()