mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-25 15:39:27 -05:00
fixed text and condition for post sync warning
This commit is contained in:
parent
5efe472055
commit
de2499ce6e
@ -877,8 +877,10 @@ void PostedListWidgetWithModel::insertBoardDetails(const RsPostedGroup& group)
|
|||||||
sync_string = tr("Unknown");
|
sync_string = tr("Unknown");
|
||||||
}
|
}
|
||||||
|
|
||||||
if(group.mMeta.mLastPost > 0 && group.mMeta.mLastPost + rsPosted->getSyncPeriod(group.mMeta.mGroupId) < time(NULL) && IS_GROUP_SUBSCRIBED(group.mMeta.mSubscribeFlags))
|
auto sync_period = rsPosted->getSyncPeriod(group.mMeta.mGroupId) ;
|
||||||
sync_string += " (Warning: will not allow latest posts to sync)";
|
|
||||||
|
if(sync_period > 0 && group.mMeta.mLastPost > 0 && group.mMeta.mLastPost + sync_period < time(NULL) && IS_GROUP_SUBSCRIBED(group.mMeta.mSubscribeFlags))
|
||||||
|
sync_string += " (Warning: will not allow posts to sync)";
|
||||||
|
|
||||||
ui->syncPeriodLabel->setText(sync_string);
|
ui->syncPeriodLabel->setText(sync_string);
|
||||||
|
|
||||||
|
@ -1093,8 +1093,10 @@ void GxsChannelPostsWidgetWithModel::insertChannelDetails(const RsGxsChannelGrou
|
|||||||
sync_string = tr("Unknown");
|
sync_string = tr("Unknown");
|
||||||
}
|
}
|
||||||
|
|
||||||
if(group.mMeta.mLastPost > 0 && group.mMeta.mLastPost + rsGxsChannels->getSyncPeriod(group.mMeta.mGroupId) < time(NULL) && IS_GROUP_SUBSCRIBED(group.mMeta.mSubscribeFlags))
|
auto sync_period = rsGxsChannels->getSyncPeriod(group.mMeta.mGroupId) ;
|
||||||
sync_string += " (Warning: will not allow latest posts to sync)";
|
|
||||||
|
if(sync_period > 0 && group.mMeta.mLastPost > 0 && group.mMeta.mLastPost + rsGxsChannels->getSyncPeriod(group.mMeta.mGroupId) < time(NULL) && IS_GROUP_SUBSCRIBED(group.mMeta.mSubscribeFlags))
|
||||||
|
sync_string += " (Warning: will not allow posts to sync)";
|
||||||
|
|
||||||
ui->infoSyncTimeLabel->setText(sync_string);
|
ui->infoSyncTimeLabel->setText(sync_string);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user