mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Simplify some using-s
This commit is contained in:
@@ -539,8 +539,8 @@ bool SkipTaskbarSupported() {
|
||||
}
|
||||
|
||||
bool RunInBackground() {
|
||||
using Ui::Platform::TitleControl;
|
||||
const auto layout = Ui::Platform::TitleControlsLayout();
|
||||
using TitleControl = Ui::Platform::TitleControl;
|
||||
return (ranges::contains(layout.left, TitleControl::Close)
|
||||
|| ranges::contains(layout.right, TitleControl::Close))
|
||||
&& !ranges::contains(layout.left, TitleControl::Minimize)
|
||||
|
Reference in New Issue
Block a user