mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-12 03:57:27 +00:00
fix(Essentials): moves code inside null check for CurrentRoom
This commit is contained in:
parent
4b4f1f3c3d
commit
efa801137c
1 changed files with 7 additions and 8 deletions
|
|
@ -625,6 +625,8 @@ namespace PepperDash.Essentials
|
|||
/// Single point call for setting the feedbacks on the activity buttons
|
||||
/// </summary>
|
||||
void SetActivityFooterFeedbacks()
|
||||
{
|
||||
if (CurrentRoom != null)
|
||||
{
|
||||
var startMode = CurrentMode == UiDisplayMode.Start;
|
||||
var presentationMode = CurrentMode == UiDisplayMode.Presentation;
|
||||
|
|
@ -633,14 +635,11 @@ namespace PepperDash.Essentials
|
|||
TriList.SetBool(StartPageVisibleJoin, startMode ? true : false);
|
||||
TriList.SetBool(UIBoolJoin.SourceStagingBarVisible, presentationMode ? true : false);
|
||||
|
||||
if (CurrentRoom != null)
|
||||
{
|
||||
CallButtonSig.BoolValue = startMode
|
||||
&& CurrentRoom.ShutdownType == eShutdownType.None;
|
||||
ShareButtonSig.BoolValue = presentationMode
|
||||
&& CurrentRoom.ShutdownType == eShutdownType.None;
|
||||
EndMeetingButtonSig.BoolValue = CurrentRoom.ShutdownType != eShutdownType.None;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue