Repository: dbeaver/dbeaver
Issue: Database Navigator "Show Connected Only", "Show All" toggle no longer works

#### System information: 
- Operating system (distribution) and version  Windows 10 Enterprise version 1909
- DBeaver version  Community 21.1.1.202106210824
- Java version 
- Additional extensions

#### Connection specification:
- Database name and version  postgres 13.*
- Driver name
- Do you use tunnels or proxies (SSH, SOCKS, etc)? 

#### Describe the problem you're observing:
[Database Navigator], top right side, button to toggle between showing all connections and showing connected only stopped working with yesterday's upgrade to Community 21.1.1.202106210824
#### Steps to reproduce, if exist:

#### Include any warning/errors/backtraces from the logs
<none>  Functionality has not worked today and there are no errors in the logs from today.

Changed files:
plugins/org.jkiss.dbeaver.ui.navigator/src/org/jkiss/dbeaver/ui/navigator/database/TextMatcherExt.java
plugins/org.jkiss.dbeaver.ui.navigator/src/org/jkiss/dbeaver/ui/navigator/database/DatabaseNavigatorTree.java

diff --git a/plugins/org.jkiss.dbeaver.ui.navigator/src/org/jkiss/dbeaver/ui/navigator/database/DatabaseNavigatorTree.java b/plugins/org.jkiss.dbeaver.ui.navigator/src/org/jkiss/dbeaver/ui/navigator/database/DatabaseNavigatorTree.java
index 749c8113a7..a6c2863f9a 100644
--- a/plugins/org.jkiss.dbeaver.ui.navigator/src/org/jkiss/dbeaver/ui/navigator/database/DatabaseNavigatorTree.java
+++ b/plugins/org.jkiss.dbeaver.ui.navigator/src/org/jkiss/dbeaver/ui/navigator/database/DatabaseNavigatorTree.java
@@ -714,6 +714,8 @@ public class DatabaseNavigatorTree extends Composite implements INavigatorListen
                 }
                 pattern = "*" + pattern;
                 this.matcher = new TextMatcherExt(pattern, true, false);
+            } else {
+                super.setPattern(null);
             }
         }
 
@@ -725,13 +727,10 @@ public class DatabaseNavigatorTree extends Composite implements INavigatorListen
             if (matcher != null) {
                 return matcher.match(text);
             }
-            return false;
+            return super.wordMatches(text);
         }
 
         public boolean isElementVisible(Viewer viewer, Object element){
-            if (matcher == null) {
-                return true;
-            }
             if (filterShowConnected && element instanceof DBNDataSource && !((DBNDataSource) element).getDataSourceContainer().isConnected()) {
                 return false;
             }
diff --git a/plugins/org.jkiss.dbeaver.ui.navigator/src/org/jkiss/dbeaver/ui/navigator/database/TextMatcherExt.java b/plugins/org.jkiss.dbeaver.ui.navigator/src/org/jkiss/dbeaver/ui/navigator/database/TextMatcherExt.java
index 7a5d7d0710..6b4a5dffe0 100644
--- a/plugins/org.jkiss.dbeaver.ui.navigator/src/org/jkiss/dbeaver/ui/navigator/database/TextMatcherExt.java
+++ b/plugins/org.jkiss.dbeaver.ui.navigator/src/org/jkiss/dbeaver/ui/navigator/database/TextMatcherExt.java
@@ -68,6 +68,7 @@ public class TextMatcherExt {
             if (s == null || s.isEmpty()) {
                 continue;
             }
+            s = "*" + s;
             StringMatcher m = new StringMatcher(s, ignoreCase, ignoreWildCards);
             m.usePrefixMatch();
             matchers.add(m);