Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
nheko
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nheko Reborn
nheko
Commits
84434433
Verified
Commit
84434433
authored
3 years ago
by
Nicolas Werner
Browse files
Options
Downloads
Patches
Plain Diff
Fix wrong tags in context menu
parent
019bcf5f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#2223
failed
3 years ago
Stage: build
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
resources/qml/RoomList.qml
+1
-1
1 addition, 1 deletion
resources/qml/RoomList.qml
src/timeline/CommunitiesModel.h
+10
-0
10 additions, 0 deletions
src/timeline/CommunitiesModel.h
with
11 additions
and
1 deletion
resources/qml/RoomList.qml
+
1
−
1
View file @
84434433
...
...
@@ -70,7 +70,7 @@ Page {
}
Instantiator
{
model
:
Communities
.
tags
model
:
Communities
.
tags
WithDefault
onObjectAdded
:
roomContextMenu
.
insertItem
(
index
+
2
,
object
)
onObjectRemoved
:
roomContextMenu
.
removeItem
(
object
)
...
...
This diff is collapsed.
Click to expand it.
src/timeline/CommunitiesModel.h
+
10
−
0
View file @
84434433
...
...
@@ -17,6 +17,7 @@ class CommunitiesModel : public QAbstractListModel
Q_PROPERTY
(
QString
currentTagId
READ
currentTagId
WRITE
setCurrentTagId
NOTIFY
currentTagIdChanged
RESET
resetCurrentTagId
)
Q_PROPERTY
(
QStringList
tags
READ
tags
NOTIFY
tagsChanged
)
Q_PROPERTY
(
QStringList
tagsWithDefault
READ
tagsWithDefault
NOTIFY
tagsChanged
)
public:
enum
Roles
...
...
@@ -50,6 +51,15 @@ public slots:
emit
currentTagIdChanged
(
currentTagId_
);
}
QStringList
tags
()
const
{
return
tags_
;
}
QStringList
tagsWithDefault
()
const
{
QStringList
tagsWD
=
tags_
;
tagsWD
.
prepend
(
"m.lowpriority"
);
tagsWD
.
prepend
(
"m.favourite"
);
tagsWD
.
removeOne
(
"m.server_notice"
);
tagsWD
.
removeDuplicates
();
return
tagsWD
;
}
void
toggleTagId
(
QString
tagId
);
signals
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment