mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 06:07:06 +02:00
Ensure closing is supported for running in background
This commit is contained in:
parent
e5227a7e05
commit
dfa5386a27
1 changed files with 3 additions and 1 deletions
|
@ -538,7 +538,9 @@ bool SkipTaskbarSupported() {
|
|||
bool RunInBackground() {
|
||||
const auto layout = Ui::Platform::TitleControlsLayout();
|
||||
using TitleControl = Ui::Platform::TitleControl;
|
||||
return !ranges::contains(layout.left, TitleControl::Minimize)
|
||||
return (ranges::contains(layout.left, TitleControl::Close)
|
||||
|| ranges::contains(layout.right, TitleControl::Close))
|
||||
&& !ranges::contains(layout.left, TitleControl::Minimize)
|
||||
&& !ranges::contains(layout.right, TitleControl::Minimize);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue