Skip to content

Commit d4b6773

Browse files
committed
Make changes to UI based on suggestions
1 parent fefd1d7 commit d4b6773

5 files changed

Lines changed: 104 additions & 203 deletions

File tree

src/Common.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ public static string SourcePath2
190190
public static class SizeTracker
191191
{
192192
private static long toDownload;
193-
private static long modified;
193+
private static long toChange;
194194

195195
// Tracks total size of components available locally
196196
public static long Downloaded { get; set; }
@@ -201,16 +201,16 @@ public static long ToDownload
201201
set
202202
{
203203
toDownload = value;
204-
Main.TotalSizeDisplay.Text = GetFormattedBytes(toDownload);
204+
Main.DownloadButton.Text = $"Download Flashpoint ({GetFormattedBytes(toDownload)})";
205205
}
206206
}
207207
// Tracks size difference from checking/unchecking components in the manager tab
208-
public static long Modified
208+
public static long ToChange
209209
{
210-
get => modified;
210+
get => toChange;
211211
set {
212-
modified = value;
213-
Main.TotalSizeDisplay2.Text = GetFormattedBytes(modified - Downloaded);
212+
toChange = value;
213+
Main.ChangeButton.Text = $"Apply changes ({GetFormattedBytes(toChange - Downloaded)})";
214214
}
215215
}
216216
}
@@ -310,7 +310,7 @@ public static void SyncManager(bool setCheckState = false)
310310
});
311311

312312
SizeTracker.Downloaded = GetTotalSize(Main.ComponentList2);
313-
SizeTracker.Modified = GetTotalSize(Main.ComponentList2);
313+
SizeTracker.ToChange = GetTotalSize(Main.ComponentList2);
314314
}
315315

316316
// Deletes a file as well as any directories made empty by its deletion

src/Forms/FinishOperation.Designer.cs

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)