# CutBox.app

## Coverage Report

#### Created: 2024-03-12 03:40

    .../Source/App/Preferences/PreferencesAdvancedView+HistorySize.swift

    Line

    Count

    Source (jump to first uncovered line)

    1

    //

    2

    //  PreferencesAdvancedView+HistorySize.swift

    3

    //  CutBox

    4

    //

    5

    //  Created by Jason Milkins on 11/5/18.

    6

    //  Copyright © 2018-2023 ocodo. All rights reserved.

    7

    //

    8

    9

    import RxSwift

    10

    import Foundation

    11

    12

    extension PreferencesAdvancedView {

    13

    14

    50

        func setupHistorySizeLabel() {

    15

    50

            updateHistorySizeLabel()

    16

    50

    17

    50

            HistoryService.shared

    18

    50

                .events

    19

    50

                .subscribe(onNext: { _ in self.updateHistorySizeLabel() })

    20

    50

                .disposed(by: disposeBag)

    21

    50

        }

    22

    23

    50

        func updateHistorySizeLabel() {

    24

    50

            self.historySizeLabel.stringValue = String(

    25

    50

                format: "preferences_history_is_using_format".l7n,

    26

    50

                HistoryService.shared.historyMemorySize()

    27

    50

            )

    28

    50

        }

    29

    }