refactored UI update logic into discrete functions

CrepeGoat
Oct 16, 2024, 7:36 PM
V3SZ2LL2CQEVUXVRBJKL6BH6W5RSE2EZXXHY6JEINS7UAPZLEXUAC

Dependencies

  • [2] 3W2E3DX2 added counter for pending diff files
  • [3] DBJYTADP clear selections on refresh
  • [4] IQY5LHEN add GUI element to display simple `pijul log` results
  • [5] SOTD66FO set Changelog UI to display log from selected channel in ChannelsList UI
  • [6] BD456SZF added diff view
  • [7] NSE6BLWA init slint project from https://github.com/slint-ui/slint-rust-template
  • [8] F6YAQWVD added UI for `pijul change`
  • [9] 4RPYR65C connect GUI to pijul to display simple channel list
  • [10] NBBTJI4I fixed bug s.t. choosing a new channel clears the log selection & delta view

Change contents

  • replacement in ui/app-window.slint at line 251
    [4.1038][4.1038:1070]()
    function fill-diff-view() {
    [4.1038]
    [2.304]
    function fill-chs() {
    chs.deselect();
    root.request-channel-list();
    }
    function fill-log() {
    log.deselect();
    root.request-changes-log(chs.channels[chs.selected]);
  • edit in ui/app-window.slint at line 260
    [2.367]
    [4.1070]
    }
    function fill-diff-view() {
  • replacement in ui/app-window.slint at line 275
    [4.407][3.68:100](),[3.100][4.170:215](),[4.407][4.170:215](),[4.215][3.101:133](),[3.133][4.43:113](),[4.215][4.43:113]()
    chs.deselect();
    root.request-channel-list();
    log.deselect();
    root.request-changes-log(chs.channels[chs.selected]);
    [4.407]
    [4.1310]
    fill-chs();
    fill-log();
  • replacement in ui/app-window.slint at line 286
    [4.187][4.187:261](),[4.261][4.1345:1381](),[4.1381][4.1381:1453]()
    root.request-changes-log(chs.channels[chs.selected]);
    log.deselect();
    root.request-diff-delta(chs.channels[chs.selected])
    [4.187]
    [4.261]
    fill-log();
    fill-diff-view();