# CutBox.app

## Coverage Report

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

    .../Source/App/Preferences/PreferencesGeneralView+ShowHiddenDialogButton.swift

    Line

    Count

    Source

    1

    //

    2

    //  PreferencesGeneralView+ShowHiddenDialogButton.swift

    3

    //  CutBox

    4

    //

    5

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

    6

    //  Copyright © 2023 ocodo. All rights reserved.

    7

    //

    8

    9

    import Foundation

    10

    11

    extension PreferencesGeneralView {

    12

    13

    50

        func setupShowAllHiddenDialogBoxesButton() {

    14

    50

            self.showAllHiddenDialogBoxesButton.toolTip = "preferences_show_all_hidden_dialog_boxes_button_tootip".l7n

    15

    50

            self.showAllHiddenDialogBoxesButton.title = "preferences_show_all_hidden_dialog_boxes_button_title".l7n

    16

    50

    17

    50

            self.showAllHiddenDialogBoxesButton

    18

    50

                .rx

    19

    50

                .tap

    20

    51

                .bind(onNext: resetAllHiddenDialogBoxes)

    $s15CutBoxUnitTests22PreferencesGeneralViewC35setupShowAllHiddenDialogBoxesButtonyyFyypSgcACcfu_

    Line

    Count

    Source

    20

    50

                .bind(onNext: resetAllHiddenDialogBoxes)

    $s15CutBoxUnitTests22PreferencesGeneralViewC35setupShowAllHiddenDialogBoxesButtonyyFyypSgcACcfu_yAEcfu0_

    Line

    Count

    Source

    20

    1

                .bind(onNext: resetAllHiddenDialogBoxes)

    21

    50

                .disposed(by: disposeBag)

    22

    50

        }

    23

    24

    1

        func resetAllHiddenDialogBoxes(_: Any?) {

    25

    1

            self.prefs.resetSuppressedDialogBoxes()

    26

    1

        }

    27

    }