Skip to content
This repository was archived by the owner on Jan 21, 2024. It is now read-only.

Commit c74181b

Browse files
committed
more trial and error
1 parent 14cc3e3 commit c74181b

File tree

1 file changed

+3
-14
lines changed

1 file changed

+3
-14
lines changed

Neuron-GUI.lua

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3885,22 +3885,11 @@ NeuronGUI.interfaceOptions = {
38853885
name = L["Import or Export the current profile"],
38863886
type = "input",
38873887
multiline = 30,
3888+
confirm = function() return "Are you absolutely certain you wish to import this profile? The current profile will be overwritten." end,
38883889
set = function(self, inpStr)
38893890
local result, newTable = Neuron:Deserialize(inpStr)
3890-
if result == true then
3891-
print("Test")
3892-
--[[StaticPopupDialogs["Import_Profile_Check"] = {
3893-
text = "Are you absolutely certain you wish to import this profile? The current profile will be overwritten.",
3894-
button1 = ACCEPT,
3895-
button2 = CANCEL,
3896-
timeout = 0,
3897-
whileDead = true,
3898-
OnAccept = function()
3899-
Neuron.db.profile = CopyTable(newTable)
3900-
ReloadUI()
3901-
end,
3902-
}]]
3903-
StaticPopup_Show("Import_Profile_Check")
3891+
if result == true and newTable then
3892+
Neuron.db.profile = CopyTable(newTable)
39043893
else
39053894
print(L["Data import Failed"])
39063895
end

0 commit comments

Comments
 (0)