mirror of
https://github.com/Kvan7/Exiled-Exchange-2.git
synced 2026-09-26 06:35:45 +00:00
fix: settings window is hidden when changing key
This commit is contained in:
+3
-2
@@ -48,7 +48,8 @@ type WidgetWellKnownFlag =
|
||||
'invisible-on-blur' |
|
||||
'hide-on-blur' |
|
||||
'hide-on-blur(close)' |
|
||||
'hide-on-focus'
|
||||
'hide-on-focus' |
|
||||
'ignore-ui-visibility'
|
||||
|
||||
export const defaultConfig = (): Config => ({
|
||||
configVersion: 10,
|
||||
@@ -180,7 +181,7 @@ export const defaultConfig = (): Config => ({
|
||||
wmTitle: '',
|
||||
wmWants: 'hide',
|
||||
wmZorder: 'exclusive',
|
||||
wmFlags: ['invisible-on-blur']
|
||||
wmFlags: ['invisible-on-blur', 'ignore-ui-visibility']
|
||||
},
|
||||
// --- DEFAULT ---
|
||||
{
|
||||
|
||||
@@ -154,7 +154,7 @@ export default {
|
||||
return this.widgets.map(w => ({
|
||||
wmId: w.wmId,
|
||||
isVisible:
|
||||
this.hideUI ? false
|
||||
this.hideUI ? (w.wmWants === 'show' && w.wmFlags.includes('ignore-ui-visibility'))
|
||||
: !this.active && w.wmFlags.includes('invisible-on-blur') ? false
|
||||
: showExclusive ? w === showExclusive
|
||||
: w.wmWants === 'show'
|
||||
|
||||
Reference in New Issue
Block a user