This repository was archived by the owner on Jan 21, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-14
lines changed
Expand file tree Collapse file tree 1 file changed +3
-14
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments