Skip to content
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

修复全屏/无法退出问题的思路 #8

Closed
luyanci opened this issue Jan 10, 2024 · 3 comments
Closed

修复全屏/无法退出问题的思路 #8

luyanci opened this issue Jan 10, 2024 · 3 comments
Labels
bug Something isn't working documentation Improvements or additions to documentation help wanted Extra attention is needed

Comments

@luyanci
Copy link
Collaborator

luyanci commented Jan 10, 2024

  • 1.应用程序无法关闭(没有关闭按钮/关闭按钮无效)
  • 2.打开app时可能无法全屏/退出全屏

tips:本issue已在PR #17 中修复

@luyanci luyanci changed the title app存在一些的bug 关于app存在一些的bug Jan 10, 2024
@luyanci luyanci changed the title 关于app存在一些的bug 关于app存在的一些bug Jan 10, 2024
@cyanial
Copy link
Collaborator

cyanial commented Jan 10, 2024

Q: 为什么不好关闭?
A: 我的 electron 里面包了一个 express, 这个express 用来托管网页 build 出来的 static 文件. electron 打开后是去访问这个 express. (端口号是随机可用). 由于ui上的操作都是对网页而言的,所以没加关闭的功能。

修改思路:

  1. express 写两个 api 一个用来关闭,另外一个用来切换fullscreen, electron 和 express 代码都在 main.js 里,应该比较好改。

  2. 网页端可用把主页上右上角的按钮写成调用 express 关闭的api, 左上角问号旁边有个fullscreen的按钮可用做切换fullscreen.

Misc.

这个思路应该可以做很多保存,读取相关的功能,比如导入照片等等。。。

@luyanci

This comment has been minimized.

@cyanial cyanial changed the title 关于app存在的一些bug 全屏/无法退出问题 Jan 10, 2024
@cyanial cyanial added bug Something isn't working documentation Improvements or additions to documentation help wanted Extra attention is needed labels Jan 10, 2024
@cyanial cyanial changed the title 全屏/无法退出问题 修复全屏/无法退出问题的思路 Jan 10, 2024
@bxcZSZA
Copy link

bxcZSZA commented Jan 14, 2024

除了会编辑代码文件以外其他都不懂,有大佬能给一个具体怎么做才能让右上角按钮拥有实际关闭的效果的方案嘛

@luyanci luyanci closed this as completed Jan 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants