From ad559195e73a9eefa2b0641118193529ba9aa7b9 Mon Sep 17 00:00:00 2001 From: VzxPLnHqr Date: Mon, 6 May 2024 18:02:00 -0700 Subject: [PATCH] fix python dataclass issue --- src/seedsigner/views/view.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/seedsigner/views/view.py b/src/seedsigner/views/view.py index a5c4800c6..a7c83d49d 100644 --- a/src/seedsigner/views/view.py +++ b/src/seedsigner/views/view.py @@ -1,4 +1,4 @@ -from dataclasses import dataclass +from dataclasses import dataclass, field from typing import Type from seedsigner.gui.components import FontAwesomeIconConstants, SeedSignerIconConstants @@ -313,7 +313,7 @@ class ErrorView(View): status_headline: str = None text: str = None button_text: str = None - next_destination: Destination = Destination(MainMenuView, clear_history=True) + next_destination: Destination = field(default_factory=lambda: Destination(MainMenuView, clear_history=True)) def run(self):