mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 21:57:10 +02:00
Simplify some using-s
This commit is contained in:
parent
76ac6c3be7
commit
8ea4f26e31
2 changed files with 2 additions and 2 deletions
|
@ -23,7 +23,7 @@ namespace {
|
|||
|
||||
constexpr auto kXDPOpenURIInterface = "org.freedesktop.portal.OpenURI";
|
||||
constexpr auto kPropertiesInterface = "org.freedesktop.DBus.Properties";
|
||||
const auto XdgActivationToken = base::Platform::XdgActivationToken;
|
||||
using base::Platform::XdgActivationToken;
|
||||
|
||||
} // namespace
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue