feat: option to open link without warning

This commit is contained in:
People-11
2026-03-27 01:37:16 +10:30
committed by GitHub
parent 3fc8796bda
commit a3d03a3c63
5 changed files with 25 additions and 1 deletions
+5
View File
@@ -255,6 +255,7 @@ public:
[[nodiscard]] bool showOnlyAddedEmojisAndStickers() const { return _showOnlyAddedEmojisAndStickers.current(); }
[[nodiscard]] bool collapseSimilarChannels() const { return _collapseSimilarChannels.current(); }
[[nodiscard]] bool hideSimilarChannels() const { return _hideSimilarChannels.current(); }
[[nodiscard]] bool disableOpenLinkWarning() const { return _disableOpenLinkWarning.current(); }
[[nodiscard]] double wideMultiplier() const { return _wideMultiplier.current(); }
[[nodiscard]] bool spoofWebviewAsAndroid() const { return _spoofWebviewAsAndroid.current(); }
[[nodiscard]] bool increaseWebviewHeight() const { return _increaseWebviewHeight.current(); }
@@ -335,6 +336,7 @@ public:
void setShowOnlyAddedEmojisAndStickers(bool val);
void setCollapseSimilarChannels(bool val);
void setHideSimilarChannels(bool val);
void setDisableOpenLinkWarning(bool val);
void setWideMultiplier(double val);
void setSpoofWebviewAsAndroid(bool val);
void setIncreaseWebviewHeight(bool val);
@@ -431,6 +433,8 @@ public:
[[nodiscard]] rpl::producer<bool> collapseSimilarChannelsChanges() const { return _collapseSimilarChannels.changes(); }
[[nodiscard]] rpl::producer<bool> hideSimilarChannelsValue() const { return _hideSimilarChannels.value(); }
[[nodiscard]] rpl::producer<bool> hideSimilarChannelsChanges() const { return _hideSimilarChannels.changes(); }
[[nodiscard]] rpl::producer<bool> disableOpenLinkWarningValue() const { return _disableOpenLinkWarning.value(); }
[[nodiscard]] rpl::producer<bool> disableOpenLinkWarningChanges() const { return _disableOpenLinkWarning.changes(); }
[[nodiscard]] rpl::producer<double> wideMultiplierValue() const { return _wideMultiplier.value(); }
[[nodiscard]] rpl::producer<double> wideMultiplierChanges() const { return _wideMultiplier.changes(); }
[[nodiscard]] rpl::producer<bool> spoofWebviewAsAndroidValue() const { return _spoofWebviewAsAndroid.value(); }
@@ -584,6 +588,7 @@ private:
rpl::variable<bool> _showOnlyAddedEmojisAndStickers = false;
rpl::variable<bool> _collapseSimilarChannels = true;
rpl::variable<bool> _hideSimilarChannels = false;
rpl::variable<bool> _disableOpenLinkWarning = false;
rpl::variable<double> _wideMultiplier = 1.0;
rpl::variable<bool> _spoofWebviewAsAndroid = false;
rpl::variable<bool> _increaseWebviewHeight = false;