def clear_ps_data(self):
        psman = self.psman

        def _clear_ps_data(b: bool):
            if b:
                psman.clear_ps_data()

        d = Question(psman.CLEAR_PS_DATA_MSG, _clear_ps_data)
        d.open()
Beispiel #2
0
    def protx_llmq_reset(self, *args):
        mn_list = self.net.mn_list

        def on_reset(b):
            if b:
                mn_list.reset()

        d = Question(mn_list.RESET_WARN_MSG, on_reset)
        d.open()
    def toggle_allow_others(self, *args):
        if self.psman.allow_others:
            self.psman.allow_others = False
            self.allow_others = False
        else:
            q = self.psman.allow_others_data(kv_question=True)

            def on_q_answered(b):
                if b:
                    self.psman.allow_others = True
                    self.allow_others = True

            d = Question(q, on_q_answered)
            d.size_hint = (0.9, 0.9)
            d.open()
    def create_sm_denoms(self, *args):
        w = self.wallet
        psman = w.psman
        denoms_by_vals = psman.calc_denoms_by_values()
        if (not denoms_by_vals
                or not psman.check_big_denoms_presented(denoms_by_vals)):
            msg = psman.create_sm_denoms_data(no_denoms_txt=True)
            self.app.show_error(msg)
        else:
            if psman.check_enough_sm_denoms(denoms_by_vals):
                q = psman.create_sm_denoms_data(enough_txt=True)
            else:
                q = psman.create_sm_denoms_data(confirm_txt=True)

            def on_q_answered(b):
                if b:
                    self.app.create_small_denoms(denoms_by_vals)

            d = Question(q, on_q_answered)
            d.open()
Beispiel #5
0
 def reset_scans(self, wallet):
     d = Question(self.plugin.MSG_Q_RESET, self.do_reset_scans)
     d.open()