Changeset 6d06bbc in mainline
- Timestamp:
- 2026-04-08T18:33:34Z (3 days ago)
- Branches:
- master
- Children:
- 5bc87028, 68f13bcc, df2f4d9
- Parents:
- 9f9d9067
- Location:
- uspace/app/sysinst
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/sysinst/sysinst.c
r9f9d9067 r6d06bbc 629 629 goto error; 630 630 } 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 } 631 641 } else { 632 642 /* Create installation partition. */ … … 634 644 if (rc != EOK) 635 645 goto error; 646 647 /* performing initial OS installation */ 648 sysinst->oper = sio_install; 636 649 } 637 650 … … 1458 1471 ui_msg_dialog_params_init(¶ms); 1459 1472 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 1461 1479 params.choice = umdc_ok_cancel; 1462 1480 params.flags |= umdf_topmost | umdf_center; -
uspace/app/sysinst/sysinst.h
r9f9d9067 r6d06bbc 1 1 /* 2 * Copyright (c) 202 5Jiri Svoboda2 * Copyright (c) 2026 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 54 54 } sysinst_progress_t; 55 55 56 /** Installer operation */ 57 typedef enum { 58 /** initial OS installation */ 59 sio_install, 60 /** OS upgrade */ 61 sio_upgrade 62 } sysinst_oper_t; 63 56 64 /** System installer. */ 57 65 typedef struct { … … 63 71 /** Service ID of destination partition. */ 64 72 sysarg_t psvc_id; 73 /** operation being performed */ 74 sysinst_oper_t oper; 65 75 futil_t *futil; 66 76 char errmsg[128];
Note:
See TracChangeset
for help on using the changeset viewer.
