-
-
Notifications
You must be signed in to change notification settings - Fork 448
Fix Custom Query Hotkey / Shortcuts Preview Issue #3248
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1359,7 +1359,7 @@ public void ToggleFlowLauncher() | |
} | ||
} | ||
|
||
public void Show() | ||
public void Show(bool invokeEvent = true) | ||
{ | ||
Application.Current.Dispatcher.Invoke(() => | ||
{ | ||
|
@@ -1368,7 +1368,8 @@ public void Show() | |
MainWindowOpacity = 1; | ||
|
||
MainWindowVisibilityStatus = true; | ||
VisibilityChanged?.Invoke(this, new VisibilityChangedEventArgs { IsVisible = true }); | ||
if (invokeEvent) | ||
|
||
VisibilityChanged?.Invoke(this, new VisibilityChangedEventArgs { IsVisible = true }); | ||
}); | ||
} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any reason to change this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For code quality.😂 I prefer
_
prefix forreadonly
properties and majority of codes in FL uses this way.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Technically this is a field instead of property (maybe it worth to figure out the difference). For here, I think it's fine.