Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Install Date column to GUI mod list #2514

Merged
merged 1 commit into from
Aug 23, 2018

Conversation

HebaruSan
Copy link
Member

Motivation

CKAN tracks the date and time when a mod was installed, but this information is not shown in GUI. It could be useful to be able to sort installed mods so you can see the order in which they were installed.

Changes

Now a new sortable Install Date column shows when mods were installed:

image

To achieve this, you can now construct a GUIMod object from an InstalledModule, or a CkanModule, or a string identifier. The constructors are layered by : this() calls so the simplest initialization is done first, then supplemented by whatever additional info is at hand. The InstalledModule-based constructor populates a new InstallDate property.

MainModList._UpdateModsList is updated to generate GUIMod objects based on InstalledModule objects when they are available.

The logic for making one row of the mod list is now split out from MainModList.ConstructModList into a new private MakeRow function.

Fixes #954. Fixes #1046. Fixes #1933.

:100644 100644 461847e9 407319cb M	GUI/GUIMod.cs
:100644 100644 9dccb6d6 2e538722 M	GUI/Main.Designer.cs
:100644 100644 f8bd12ec a01f4134 M	GUI/MainModList.cs

:100644 100644 461847e9 43bd6146 M	GUI/GUIMod.cs
:100644 100644 9dccb6d6 2e538722 M	GUI/Main.Designer.cs
:100644 100644 f8bd12ec a01f4134 M	GUI/MainModList.cs
@politas politas merged commit ff0142f into KSP-CKAN:master Aug 23, 2018
politas added a commit that referenced this pull request Aug 23, 2018
@HebaruSan HebaruSan deleted the feature/inst-date-col branch August 23, 2018 05:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement GUI Issues affecting the interactive GUI Pull request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants