-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
解决由于发给main-1窗口的open-image事件被main-0窗口接受到,导致main-0窗口已经隐藏的工具条被重新显示的问题
- Loading branch information
1 parent
d7f880d
commit 784db0c
Showing
3 changed files
with
31 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,14 @@ | ||
#[derive(Clone, serde::Deserialize, Debug)] | ||
pub struct PageLoadedEvent { | ||
pub struct PageLoadedEventPayload { | ||
/// label of sender window | ||
pub send_from: String, | ||
} | ||
|
||
#[derive(Clone, serde::Serialize, Debug)] | ||
pub struct OpenImageEventPayload { | ||
/// label of receiver window | ||
pub send_to: String, | ||
|
||
/// path of image to open | ||
pub image_path: String, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters