Skip to content

Commit 1acaa40

Browse files
Remove hardcore contains string
1 parent 21a2bc3 commit 1acaa40

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/zGui/ztable.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ void ZTable::onContentClicked(const QModelIndex &index) {
103103
}
104104
}
105105

106-
if (content.contains("more...")) {
106+
constexpr int MAX_LENGTH_CONTENT = 20;
107+
if (content.length() > MAX_LENGTH_CONTENT) {
107108
auto query = zSQLManager.executeQueryResult(
108109
R"(
109110
SELECT content FROM clipboard WHERE content_hash = :hash

0 commit comments

Comments
 (0)