-
Notifications
You must be signed in to change notification settings - Fork 109
Bindings for controlling taskbar progress/flash #263
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
base: master
Are you sure you want to change the base?
Changes from all commits
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 |
|---|---|---|
|
|
@@ -2289,6 +2289,27 @@ public PhotinoWindow SetZoom(int zoom) | |
| return this; | ||
| } | ||
|
|
||
| public PhotinoWindow SetFlash(bool state) | ||
| { | ||
| Log($".SetFlash({state})"); | ||
| Invoke(() => Photino_SetFlash(_nativeInstance, state)); | ||
| return this; | ||
|
Comment on lines
+2292
to
+2296
|
||
| } | ||
|
|
||
| public PhotinoWindow SetProgress(ulong current, ulong total, PhotinoWindowProgressState state) | ||
| { | ||
| Log($".SetProgress({current}, {total}, {state})"); | ||
| Invoke(() => Photino_SetProgress(_nativeInstance, current, total, state)); | ||
| return this; | ||
| } | ||
|
|
||
| public PhotinoWindow ClearProgress() | ||
| { | ||
| Log($".ClearProgress()"); | ||
| Invoke(() => Photino_ClearProgress(_nativeInstance)); | ||
| return this; | ||
| } | ||
|
|
||
| /// <summary> | ||
| /// When true the native window starts up at the OS Default location. | ||
| /// Default is true. | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,11 @@ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| using System; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+1
to
+2
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| using System; |
Copilot
AI
Apr 2, 2026
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.
This new public enum is missing the XML documentation used elsewhere for public enums (see PhotinoDialogEnums.cs). Adding a <summary> for the enum and brief docs for each member will keep the public API documentation consistent.
| public enum PhotinoWindowProgressState | |
| { | |
| Error, | |
| Paused, | |
| Normal, | |
| /// <summary> | |
| /// Represents the state of the progress indicator for a <c>PhotinoWindow</c>. | |
| /// </summary> | |
| public enum PhotinoWindowProgressState | |
| { | |
| /// <summary> | |
| /// Indicates that the operation has failed or encountered an error. | |
| /// </summary> | |
| Error, | |
| /// <summary> | |
| /// Indicates that the operation has been paused. | |
| /// </summary> | |
| Paused, | |
| /// <summary> | |
| /// Indicates that the operation is in progress with a determinate value. | |
| /// </summary> | |
| Normal, | |
| /// <summary> | |
| /// Indicates that the operation is in progress with an indeterminate value. | |
| /// </summary> |
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.
Parameter name
stateinSetFlash(bool state)is ambiguous (state of what?). Consider renaming toenabled/flash(or similar) to align with other boolean setters likeSetTopMost(bool topMost)and improve call-site readability.