Skip to content

Commit

Permalink
Enable lock session action properly on join
Browse files Browse the repository at this point in the history
It didn't always get enabled because the ACL state didn't notice a
change between being a local operator drawing offline and going online.
  • Loading branch information
askmeaboutlo0m committed Aug 11, 2023
1 parent 4ec27d6 commit ef637d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Unreleased Version 2.2.0-pre
* Fix: Don't add current color to the palette when creating it. Thanks xxxx for reporting.
* Fix: Make exported palettes not start using the exported location to save changes to. Thanks xxxx for reporting.
* Feature: Allow muting notifications for a window. Thanks Blozzom for suggesting.
* Fix: Enable the lock session menu option properly, it remained stuck disabled in some cases before.

2023-07-31 Version 2.2.0-beta.6
* Fix: Don't forget account password when entering a wrong session password.
Expand Down
1 change: 1 addition & 0 deletions src/desktop/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2005,6 +2005,7 @@ void MainWindow::onServerLogin(bool join, const QString &joinPassword)
m_sessionSettings->setAuthenticated(m_doc->client()->isAuthenticated());
setDrawingToolsEnabled(true);
m_modtools->setEnabled(m_doc->client()->isModerator());
onOperatorModeChange(m_doc->canvas()->aclState()->amOperator());
getAction("reportabuse")->setEnabled(m_doc->client()->serverSupportsReports());
getAction("invitesession")->setEnabled(true);
if(m_chatbox->isCollapsed()) {
Expand Down

0 comments on commit ef637d9

Please sign in to comment.