File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -21640,6 +21640,8 @@ static void collect_process_stats(void)
21640
21640
launcher_ui.snis_client_count = get_process_count("[/]snis_client") / 2;
21641
21641
}
21642
21642
21643
+ static int already_checked_asset_update_time = 0;
21644
+
21643
21645
static void maybe_show_downloading_message(void)
21644
21646
{
21645
21647
static int framecounter = 0;
@@ -21668,6 +21670,8 @@ static void maybe_show_downloading_message(void)
21668
21670
if (download_in_progress) {
21669
21671
/* download has finished, unhide the restart button */
21670
21672
ui_unhide_widget(launcher_ui.restart_btn);
21673
+ /* make the asset update button get disabled */
21674
+ already_checked_asset_update_time = 0;
21671
21675
}
21672
21676
}
21673
21677
}
@@ -21680,15 +21684,14 @@ static void maybe_show_downloading_message(void)
21680
21684
21681
21685
static int assets_updated_too_recently(void)
21682
21686
{
21683
- static int already_checked = 0;
21684
21687
static int answer = 0;
21685
21688
21686
- if (already_checked )
21689
+ if (already_checked_asset_update_time )
21687
21690
return answer;
21688
21691
21689
21692
char *last_update = xdg_base_slurp_file(xdg_base_ctx, "last_asset_update_time.txt");
21690
21693
time_t last_update_time;
21691
- already_checked = 1;
21694
+ already_checked_asset_update_time = 1;
21692
21695
21693
21696
if (!last_update) {
21694
21697
answer = 0;
You can’t perform that action at this time.
0 commit comments