# CutBox.app

## Coverage Report

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

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

    Line

    Count

    Source

    1

    //

    2

    //  PreferencesGeneralView+AutoLogin.swift

    3

    //  CutBox

    4

    //

    5

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

    6

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

    7

    //

    8

    9

    import RxCocoa

    10

    import RxSwift

    11

    12

    extension PreferencesGeneralView {

    13

    49

        func setupAutoLoginControl() {

    14

    49

            self.autoLoginCheckbox.title = "preferences_launch_on_login".l7n

    15

    49

            self.autoLoginCheckbox.toolTip = "preferences_launch_on_login_tooltip".l7n

    16

    49

            self.loginItemsService

    17

    49

                .autoLoginEnabled

    18

    49

                .asObservable()

    19

    49

                .bind(to: self.autoLoginCheckbox.rx.state)

    20

    49

                .disposed(by: disposeBag)

    21

    49

    22

    49

            self.autoLoginCheckbox.rx.state

    23

    49

                .bind(to: self.loginItemsService.autoLoginEnabled)

    24

    49

                .disposed(by: disposeBag)

    25

    49

        }

    26

    }