mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-14 05:07:10 +02:00
chore: remove annoying stories tooltip
This commit is contained in:
parent
383c488268
commit
3243f57fd5
1 changed files with 0 additions and 18 deletions
|
@ -1059,24 +1059,6 @@ void Widget::setupStories() {
|
|||
_scroll->viewportEvent(e);
|
||||
}, _stories->lifetime());
|
||||
|
||||
if (!Core::App().settings().storiesClickTooltipHidden()) {
|
||||
// Don't create tooltip
|
||||
// until storiesClickTooltipHidden can be returned to false.
|
||||
const auto hideTooltip = [=] {
|
||||
Core::App().settings().setStoriesClickTooltipHidden(true);
|
||||
Core::App().saveSettingsDelayed();
|
||||
};
|
||||
InvokeQueued(_stories.get(), [=] {
|
||||
_stories->setShowTooltip(
|
||||
controller()->content(),
|
||||
rpl::combine(
|
||||
Core::App().settings().storiesClickTooltipHiddenValue(),
|
||||
shownValue(),
|
||||
!rpl::mappers::_1 && rpl::mappers::_2),
|
||||
hideTooltip);
|
||||
});
|
||||
}
|
||||
|
||||
_storiesContents.fire(Stories::ContentForSession(
|
||||
&controller()->session(),
|
||||
Data::StorySourcesList::NotHidden));
|
||||
|
|
Loading…
Add table
Reference in a new issue