disconnect notifications
This commit is contained in:
parent
bf9063b1f8
commit
70ed33bb5b
1 changed files with 4 additions and 0 deletions
|
|
@ -228,6 +228,8 @@ def disable_profile(
|
|||
profile_observer.notify('disabled', profile, dict(
|
||||
explicitly=explicitly,
|
||||
))
|
||||
notification = "Profile Disconnected."
|
||||
Notifications.emit(EventType.STATUS_UPDATE, notification)
|
||||
|
||||
# ============================================================================
|
||||
# SYSTEMWIDE
|
||||
|
|
@ -277,6 +279,8 @@ def disable_profile(
|
|||
))
|
||||
|
||||
# return profile type for UI:
|
||||
notification = "Systemwide Disconnected."
|
||||
Notifications.emit(EventType.STATUS_UPDATE, notification)
|
||||
return Result(valid=True, data=profile.type)
|
||||
|
||||
except ConnectionTerminationError:
|
||||
|
|
|
|||
Loading…
Reference in a new issue