Skip to content

ConsoleUI prompt to delete non-empty folders after uninstall#4066

Merged
HebaruSan merged 1 commit into
KSP-CKAN:masterfrom
HebaruSan:feature/consoleui-del-dirs
Mar 23, 2024
Merged

ConsoleUI prompt to delete non-empty folders after uninstall#4066
HebaruSan merged 1 commit into
KSP-CKAN:masterfrom
HebaruSan:feature/consoleui-del-dirs

Conversation

@HebaruSan
Copy link
Copy Markdown
Member

@HebaruSan HebaruSan commented Mar 23, 2024

Motivation

#2962 added a prompt in GUI to ask the user whether to delete folders that contain only files not created by CKAN after uninstalling a mod, because such folders can make ModuleManager :NEEDS[] clauses behave as if a mod is installed when it's not.

Currently this isn't available in ConsoleUI, even though the concern about leftover folders and ModuleManager still applies.

Changes

Now ConsoleUI presents a screen after uninstallation to ask about these directories as well, if any are found:

image

(The GameData/Squad and GameData/SquadExpansion folders would never be included here in practice. I was just using them for testing.)

Fixes #3484.

@HebaruSan HebaruSan added Enhancement New features or functionality ConsoleUI Issues affecting the interactive console UI labels Mar 23, 2024
@HebaruSan HebaruSan force-pushed the feature/consoleui-del-dirs branch from 5eb8740 to 57162fe Compare March 23, 2024 19:52
@HebaruSan HebaruSan merged commit 69224fa into KSP-CKAN:master Mar 23, 2024
@HebaruSan HebaruSan deleted the feature/consoleui-del-dirs branch March 23, 2024 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ConsoleUI Issues affecting the interactive console UI Enhancement New features or functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Prompt user to delete non-empty folders after uninstall in the ConsoleUI

1 participant