forked from mumble-voip/mumble
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FEAT(client): Add function to pin channels when filtering
Previously, channel could only be explicitly hidden from the tree view when the channel filter was enabled. This commit adds the additional option to pin channels which will be shown in filtered mode, even if there are no clients connected to them. This is accompanied by a new method of saving the details in the client sqlite database: The table 'filtered_channel' was altered to contain an enum value. Whenever the current user is in a channel, the channel and all parent channels are always visible. Otherwise, the channel can be either hidden, pinned, or behave according to the current global UI setting when filtering. Closes mumble-voip#1830 Co-Authored-By: Stefan Hacker <[email protected]>
- Loading branch information
Showing
15 changed files
with
258 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// Copyright 2022 The Mumble Developers. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license | ||
// that can be found in the LICENSE file at the root of the | ||
// Mumble source tree or at <https://www.mumble.info/LICENSE>. | ||
|
||
#ifndef MUMBLE_CHANNELFILTERMODE_H_ | ||
#define MUMBLE_CHANNELFILTERMODE_H_ | ||
|
||
/// Visibility modifiers used when applying the channel filter | ||
/// The channel the user is in will be always visible | ||
/// This enum is used in the client DB, only append new entries | ||
enum class ChannelFilterMode { | ||
/// The default channel filtering behavior | ||
NORMAL, | ||
/// Channel is filtered, if the channel filter is active | ||
HIDE, | ||
/// Channel is not filtered, even if it is empty | ||
PIN | ||
}; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.