mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Ensure closing is supported for running in background
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user