From 4d4d3dadfb0614471aa949b8fa66b07ee6b3a289 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 1 Aug 2018 18:40:26 +0200 Subject: [server] Improved disabling of toolbar buttons depending on context * Disable tutor to student / student to tutor if no tutor online * Disable above buttons if selected frame is tutor * Disable lock single client button if selected client is tutor ... And many more Closes #3399 --- src/server/mainwindow/mainwindow.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/server/mainwindow/mainwindow.h') diff --git a/src/server/mainwindow/mainwindow.h b/src/server/mainwindow/mainwindow.h index 59d50fc..f42fc73 100644 --- a/src/server/mainwindow/mainwindow.h +++ b/src/server/mainwindow/mainwindow.h @@ -55,10 +55,7 @@ private: // Button block stuff QTimer *_buttonLockTimer; QList _lockingButtons; - static const qint64 _buttonBlockTime = 2000; - - /* Context-sensitive Buttons */ - QList _contextButtons; + static const qint64 BUTTON_BLOCK_TIME = 2000; // Management stuff enum class Mode @@ -96,8 +93,7 @@ private: int getTileWidthPx() const; int getTileHeightPx() const; - void lockContextButtons(); - void unlockContextButtons(); + void updateContextButtonStates(); void reloadCurrentRoom(); -- cgit v1.2.3-55-g7522