Changeset 6d06bbc in mainline for uspace/app/sysinst/sysinst.c


Ignore:
Timestamp:
2026-04-08T18:33:34Z (3 days ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master
Children:
5bc87028, 68f13bcc, df2f4d9
Parents:
9f9d9067
Message:

If performing OS upgrade, sysinst should say it's upgrading.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/sysinst/sysinst.c

    r9f9d9067 r6d06bbc  
    629629                        goto error;
    630630                }
     631
     632                /* performing OS upgrade */
     633                sysinst->oper = sio_upgrade;
     634                if (sysinst->progress != NULL) {
     635                        (void)ui_label_set_text(sysinst->progress->label,
     636                            "Upgrading system. Please wait...");
     637                        (void)ui_label_paint(sysinst->progress->label);
     638                        (void)ui_window_set_caption(sysinst->bgwindow,
     639                            "System Upgrade");
     640                }
    631641        } else {
    632642                /* Create installation partition. */
     
    634644                if (rc != EOK)
    635645                        goto error;
     646
     647                /* performing initial OS installation */
     648                sysinst->oper = sio_install;
    636649        }
    637650
     
    14581471        ui_msg_dialog_params_init(&params);
    14591472        params.caption = "Restart System";
    1460         params.text = "Installation complete. Restart the system?";
     1473
     1474        if (sysinst->oper == sio_install)
     1475                params.text = "Installation complete. Restart the system?";
     1476        else
     1477                params.text = "Upgrade complete. Restart the system?";
     1478
    14611479        params.choice = umdc_ok_cancel;
    14621480        params.flags |= umdf_topmost | umdf_center;
Note: See TracChangeset for help on using the changeset viewer.