aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdam Harrison <adamdharrison@gmail.com>2024-12-01 14:35:11 -0500
committerAdam Harrison <adamdharrison@gmail.com>2024-12-01 14:35:11 -0500
commitf6f8ff1311eeac8d349faf66fe01f0e39c640662 (patch)
treef9c6cdcc8b151854101159f36b83d35bcf9cd621 /src
parent28915241adaa8dfd089f595b74f47457128367a5 (diff)
downloadlite-xl-plugin-manager-f6f8ff1311eeac8d349faf66fe01f0e39c640662.tar.gz
lite-xl-plugin-manager-f6f8ff1311eeac8d349faf66fe01f0e39c640662.zip
Added in prompt for uninstalling lite-xls.
Diffstat (limited to 'src')
-rw-r--r--src/lpm.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lpm.lua b/src/lpm.lua
index 2e0b7fb..fe60af3 100644
--- a/src/lpm.lua
+++ b/src/lpm.lua
@@ -1425,7 +1425,9 @@ end
function LiteXL:uninstall()
if not system.stat(self.local_path) then error("lite-xl " .. self.version .. " not installed") end
- common.rmrf(self.local_path)
+ if prompt("This will delete " .. self.local_path .. ". Are you sure you want to continue?") then
+ common.rmrf(self.local_path)
+ end
end