Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: KSP-CKAN/CKAN
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: a495f435fff9
Choose a base ref
...
head repository: KSP-CKAN/CKAN
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: d9a55c85cfdc
Choose a head ref
  • 6 commits
  • 5 files changed
  • 2 contributors

Commits on Mar 27, 2018

  1. Adding auto sort-by-"Update"-column after clicking "Add available Upd…

    …ates"-button
    
    Automatically sort by "Update"-column after clicking "Add available Updates"-button
    DasSkelett committed Mar 27, 2018
    Copy the full SHA
    90f7e16 View commit details
  2. Copy the full SHA
    a02a3b1 View commit details

Commits on Apr 2, 2018

  1. Added option to disable auto-sort

    Added a "more settings" group box and  a textbox do disable auto-sort.
    DasSkelett committed Apr 2, 2018

    Verified

    This commit was signed with the committer’s verified signature.
    Copy the full SHA
    71ffb5c View commit details
  2. Copy the full SHA
    d79ca46 View commit details

Commits on Apr 3, 2018

  1. Move "Hide Epochs" checkbox to "More Settings" group box

    Move "Hide Epochs" checkbox to "More Settings" group box.
    DasSkelett committed Apr 3, 2018
    Copy the full SHA
    c8d3297 View commit details

Commits on Apr 11, 2018

  1. Copy the full SHA
    d9a55c8 View commit details
Showing with 117 additions and 56 deletions.
  1. +1 −0 CHANGELOG.md
  2. +2 −0 GUI/Configuration.cs
  3. +20 −0 GUI/Main.cs
  4. +85 −56 GUI/SettingsDialog.Designer.cs
  5. +9 −0 GUI/SettingsDialog.cs
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -9,6 +9,7 @@ All notable changes to this project will be documented in this file.
- [Core] Detect DLC and allow as a dependency (#2326 by: dbent; reviewed: politas)
- [GUI] Install old mod versions by version list double-click (#2364 by: HebaruSan; reviewed: politas)
- [Core] Allow installations to the Missions folder (#2371 by: Olympic1; reviewed: politas)
- [GUI] Sort by "update"-column on clicking "add available updates"-button (#2392 by: DasSkellet; reviewed: politas)

### Bugfixes

2 changes: 2 additions & 0 deletions GUI/Configuration.cs
Original file line number Diff line number Diff line change
@@ -19,6 +19,8 @@ public class Configuration
public bool RefreshOnStartup = true; // Defaults to true, so everyone is forced to refresh on first start
public bool RefreshOnStartupNoNag = false;

public bool AutoSortByUpdate = true;

public int ActiveFilter = 0;

// Sort by the mod name (index = 2) column by default
20 changes: 20 additions & 0 deletions GUI/Main.cs
Original file line number Diff line number Diff line change
@@ -477,7 +477,27 @@ private void MarkAllUpdatesToolButton_Click(object sender, EventArgs e)
}
}

// only sort by Update column if checkbox in settings checked
if (Main.Instance.configuration.AutoSortByUpdate)
{
// set new sort column
var new_sort_column = ModList.Columns[1];
var current_sort_column = ModList.Columns[configuration.SortByColumnIndex];

// Reset the glyph.
current_sort_column.HeaderCell.SortGlyphDirection = SortOrder.None;
configuration.SortByColumnIndex = new_sort_column.Index;
UpdateFilters(this);

// Selects the top row and scrolls the list to it.
DataGridViewCell cell = ModList.Rows[0].Cells[2];
ModList.CurrentCell = cell;

}

ModList.Refresh();


}

public void UpdateModContentsTree(CkanModule module, bool force = false)
141 changes: 85 additions & 56 deletions GUI/SettingsDialog.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading