feat: show warning before blocking followed channel (#5615)

This commit is contained in:
nerix
2024-11-03 13:29:57 +01:00
committed by GitHub
parent 8220a1fbd4
commit d3000ba597
8 changed files with 93 additions and 52 deletions
+8
View File
@@ -38,10 +38,18 @@ protected:
// button pixmap
void togglePinned();
/// Ensures that this popup is pinned (if it's expected to close automatically)
///
/// @returns `true` if the popup was pinned as a result (i.e. if the popup
/// was unpinned and said to automatically close before)
bool ensurePinned();
private:
// isMoving_ is set to true if the user is holding the left mouse button down and has moved the mouse a small amount away from the original click point (startPosDrag_)
bool isMoving_ = false;
bool closeAutomatically_ = false;
// startPosDrag_ is the coordinates where the user originally pressed the mouse button down to start dragging
QPoint startPosDrag_;