mirror of
https://github.com/RetroShare/RetroShare.git
synced 2026-09-14 11:06:01 +05:00
Fixed Wire counts to use own Wire Page
* Disabled unfinished feeds
This commit is contained in:
parent
4d1de11905
commit
bcaca4ca2d
@ -531,14 +531,14 @@ void NewsFeed::handleWireEvent(std::shared_ptr<const RsEvent> event)
|
||||
case RsWireEventCode::NEW_POST:
|
||||
addFeedItem( new WireNotifyPostItem(this, NEWSFEED_WIRELIST, pe->mWireGroupId, pe->mWireMsgId, false, true));
|
||||
break;
|
||||
case RsWireEventCode::NEW_REPLY:
|
||||
addFeedItem( new WireNotifyPostItem(this, NEWSFEED_WIRELIST, pe->mWireGroupId, pe->mWireMsgId, false, true));
|
||||
break;
|
||||
case RsWireEventCode::NEW_REPUBLISH:
|
||||
addFeedItem( new WireNotifyPostItem(this, NEWSFEED_WIRELIST, pe->mWireGroupId, pe->mWireMsgId, false, true));
|
||||
break;
|
||||
case RsWireEventCode::NEW_LIKE:
|
||||
addFeedItem( new WireNotifyPostItem(this, NEWSFEED_WIRELIST, pe->mWireGroupId, pe->mWireMsgId, false, true));
|
||||
// case RsWireEventCode::NEW_REPLY:
|
||||
// addFeedItem( new WireNotifyPostItem(this, NEWSFEED_WIRELIST, pe->mWireGroupId, pe->mWireMsgId, false, true));
|
||||
// break;
|
||||
// case RsWireEventCode::NEW_REPUBLISH:
|
||||
// addFeedItem( new WireNotifyPostItem(this, NEWSFEED_WIRELIST, pe->mWireGroupId, pe->mWireMsgId, false, true));
|
||||
// break;
|
||||
// case RsWireEventCode::NEW_LIKE:
|
||||
// addFeedItem( new WireNotifyPostItem(this, NEWSFEED_WIRELIST, pe->mWireGroupId, pe->mWireMsgId, false, true));
|
||||
break;
|
||||
case RsWireEventCode::WIRE_UPDATED:
|
||||
addFeedItem( new WireNotifyGroupItem(this, NEWSFEED_WIRELIST, pe->mWireGroupId, false, true));
|
||||
|
||||
@ -166,7 +166,7 @@ private:
|
||||
|
||||
virtual void loadRequest(const TokenQueue *queue, const TokenRequest &req) override;
|
||||
|
||||
virtual QString settingsGroupName() override{ return "PostedDialog"; }
|
||||
virtual QString settingsGroupName() override{ return "WireDialog"; }
|
||||
virtual GxsMessageFrameWidget *messageWidget(const RsGxsGroupId &groupId) override;
|
||||
|
||||
int mGroupSet;
|
||||
|
||||
@ -46,17 +46,17 @@ QIcon WireUserNotify::getMainIcon(bool hasNew)
|
||||
return hasNew ? FilesDefs::getIconFromQtResourcePath(":/icons/png/wire-notify.png") : FilesDefs::getIconFromQtResourcePath(":/icons/png/wire-circle.png");
|
||||
}
|
||||
|
||||
//QString PostedUserNotify::getTrayMessage(bool plural)
|
||||
//QString WireUserNotify::getTrayMessage(bool plural)
|
||||
//{
|
||||
// return plural ? tr("You have %1 new board posts") : tr("You have %1 new board post");
|
||||
// return plural ? tr("You have %1 new wire pulse") : tr("You have %1 new wire pulse");
|
||||
//}
|
||||
|
||||
//QString PostedUserNotify::getNotifyMessage(bool plural)
|
||||
//QString WireUserNotify::getNotifyMessage(bool plural)
|
||||
//{
|
||||
// return plural ? tr("%1 new board post") : tr("%1 new board post");
|
||||
// return plural ? tr("%1 new wire pulse") : tr("%1 new wire pulse");
|
||||
//}
|
||||
|
||||
void WireUserNotify::iconClicked()
|
||||
{
|
||||
MainWindow::showWindow(MainWindow::Wire);
|
||||
}
|
||||
}
|
||||
|
||||
@ -36,6 +36,9 @@ private:
|
||||
virtual QIcon getIcon() override;
|
||||
virtual QIcon getMainIcon(bool hasNew) override;
|
||||
|
||||
//virtual QString getTrayMessage(bool plural) override;
|
||||
//virtual QString getNotifyMessage(bool plural) override;
|
||||
|
||||
virtual void iconClicked() override;
|
||||
};
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user