disable wallet menus when they do not apply
This commit is contained in:
@@ -1118,6 +1118,9 @@ class Imported_Wallet(Abstract_Wallet):
|
||||
def has_seed(self):
|
||||
return False
|
||||
|
||||
def is_deterministic(self):
|
||||
return False
|
||||
|
||||
|
||||
|
||||
class Deterministic_Wallet(Abstract_Wallet):
|
||||
@@ -1128,6 +1131,9 @@ class Deterministic_Wallet(Abstract_Wallet):
|
||||
def has_seed(self):
|
||||
return self.seed != ''
|
||||
|
||||
def is_deterministic(self):
|
||||
return True
|
||||
|
||||
def is_watching_only(self):
|
||||
return not self.has_seed()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user