mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/telegramdesktop/tdesktop
synced 2026-09-21 00:23:56 +08:00
Removed disabling of restore windows offer after three skips.
Related commit: de957d69ca.
This commit is contained in:
@@ -1347,23 +1347,6 @@ void Settings::writePrefImpl<bool>(std::string_view key, bool value) {
|
||||
writePrefGeneric(key, value ? "\x1"_q : QByteArray());
|
||||
}
|
||||
|
||||
template <>
|
||||
std::optional<int> Settings::readPrefImpl<int>(std::string_view key) {
|
||||
if (const auto data = readPrefGeneric(key)) {
|
||||
auto ok = false;
|
||||
const auto result = data->toInt(&ok);
|
||||
if (ok) {
|
||||
return result;
|
||||
}
|
||||
}
|
||||
return {};
|
||||
}
|
||||
|
||||
template <>
|
||||
void Settings::writePrefImpl<int>(std::string_view key, int value) {
|
||||
writePrefGeneric(key, QByteArray::number(value));
|
||||
}
|
||||
|
||||
template <>
|
||||
std::optional<QByteArray> Settings::readPrefImpl<QByteArray>(
|
||||
std::string_view key) {
|
||||
|
||||
Reference in New Issue
Block a user