🐛 Fix the issue of not being able to drag and drop files.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"windows": [
|
||||
{
|
||||
"url": "https://chat.openai.com",
|
||||
"url": "https://weread.qq.com/",
|
||||
"transparent": true,
|
||||
"fullscreen": false,
|
||||
"width": 1200,
|
||||
|
||||
@@ -26,6 +26,7 @@ pub fn get_window(app: &mut App, config: PakeConfig, _data_dir: PathBuf) -> Wind
|
||||
.resizable(window_config.resizable)
|
||||
.fullscreen(window_config.fullscreen)
|
||||
.inner_size(window_config.width, window_config.height)
|
||||
.disable_file_drop_handler() //Very annoying, otherwise dragging files to the window will not work.
|
||||
.initialization_script(include_str!("../inject/style.js"))
|
||||
.initialization_script(include_str!("../inject/event.js"))
|
||||
.initialization_script(include_str!("../inject/component.js"));
|
||||
|
||||
Reference in New Issue
Block a user