2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 22:55:11 +00:00

Simplify some using-s

This commit is contained in:
Ilya Fedin
2023-09-16 09:13:39 +04:00
committed by John Preston
parent 76ac6c3be7
commit 8ea4f26e31
2 changed files with 2 additions and 2 deletions

View File

@@ -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)