Skip to content

Commit

Permalink
Shift- or ctrl-click Refresh to override etags check
Browse files Browse the repository at this point in the history
  • Loading branch information
HebaruSan committed Sep 13, 2023
1 parent fb2ab71 commit ff61cfb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion GUI/Controls/ManageMods.cs
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,8 @@ private void ConflictsUpdated(Dictionary<GUIMod, string> prevConflicts)

private void RefreshToolButton_Click(object sender, EventArgs e)
{
Main.Instance.UpdateRepo();
// If user is holding Shift or Ctrl, force a full update
Main.Instance.UpdateRepo((Control.ModifierKeys & (Keys.Control | Keys.Shift)) != 0);
}

#region Filter dropdown
Expand Down
1 change: 1 addition & 0 deletions GUI/Controls/ManageMods.resx
Original file line number Diff line number Diff line change
Expand Up @@ -156,4 +156,5 @@
<data name="purgeContentsToolStripMenuItem.Text" xml:space="preserve"><value>Purge from cache</value></data>
<data name="labelsToolStripMenuItem.Text" xml:space="preserve"><value>Labels</value></data>
<data name="editLabelsToolStripMenuItem.Text" xml:space="preserve"><value>Edit labels...</value></data>
<data name="RefreshToolButton.ToolTipText" xml:space="preserve"><value>Ctrl-click or Shift-click to re-download metadata even if there are no changes since last refresh</value></data>
</root>

0 comments on commit ff61cfb

Please sign in to comment.