Skip to content

misterdownloadmanager: The ultimate open-source, clean-room download manager written from scratch in pure Rust for Windows, Mac, and Linux

Windows: a screen that goes away no longer closes MDM (#335) (#368)

Ahmed Nefzaouic1648a9e8540
diff --git a/CHANGELOG.md b/CHANGELOG.md
index b58b77a1..978d5f93 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,9 @@ Each release's notes on GitHub come from its section here (`## [X.Y.Z]`, see
## [Unreleased]
+### Fixed
+
+- Windows: no more crash when a screen is unplugged, turned off or rearranged while MDM runs ([#335](https://github.com/anefzaoui/misterdownloadmanager/issues/335)).
### Added
- Help: what to do when an antivirus or VirusTotal flags MDM, and how to check your copy is the real one.
diff --git a/Cargo.lock b/Cargo.lock
index c7f2b644..1b20e946 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1908,7 +1908,7 @@ checksum = "d0881ea181b1df73ff77ffaaf9c7544ecc11e82fba9b5f27b262a3c73a332555"
[[package]]
name = "ecolor"
version = "0.37.0"
-source = "git+https://github.com/anefzaoui/egui.git?rev=517027e916d11183b65b0cd9e5066154dbc7324b#517027e916d11183b65b0cd9e5066154dbc7324b"
+source = "git+https://github.com/anefzaoui/egui.git?rev=d110a3ccf2f1710f3e67db3f910b18003732c1df#d110a3ccf2f1710f3e67db3f910b18003732c1df"
dependencies = [
"bytemuck",
"emath",
@@ -1917,7 +1917,7 @@ dependencies = [
[[package]]
name = "eframe"
version = "0.37.0"
-source = "git+https://github.com/anefzaoui/egui.git?rev=517027e916d11183b65b0cd9e5066154dbc7324b#517027e916d11183b65b0cd9e5066154dbc7324b"
+source = "git+https://github.com/anefzaoui/egui.git?rev=d110a3ccf2f1710f3e67db3f910b18003732c1df#d110a3ccf2f1710f3e67db3f910b18003732c1df"
dependencies = [
"ahash",
"bytemuck",
@@ -1953,7 +1953,7 @@ dependencies = [
[[package]]
name = "egui"
version = "0.37.0"
-source = "git+https://github.com/anefzaoui/egui.git?rev=517027e916d11183b65b0cd9e5066154dbc7324b#517027e916d11183b65b0cd9e5066154dbc7324b"
+source = "git+https://github.com/anefzaoui/egui.git?rev=d110a3ccf2f1710f3e67db3f910b18003732c1df#d110a3ccf2f1710f3e67db3f910b18003732c1df"
dependencies = [
"accesskit",
"ahash",
@@ -1972,7 +1972,7 @@ dependencies = [
[[package]]
name = "egui-wgpu"
version = "0.37.0"
-source = "git+https://github.com/anefzaoui/egui.git?rev=517027e916d11183b65b0cd9e5066154dbc7324b#517027e916d11183b65b0cd9e5066154dbc7324b"
+source = "git+https://github.com/anefzaoui/egui.git?rev=d110a3ccf2f1710f3e67db3f910b18003732c1df#d110a3ccf2f1710f3e67db3f910b18003732c1df"
dependencies = [
"ahash",
"bytemuck",
@@ -1991,7 +1991,7 @@ dependencies = [
[[package]]
name = "egui-winit"
version = "0.37.0"
-source = "git+https://github.com/anefzaoui/egui.git?rev=517027e916d11183b65b0cd9e5066154dbc7324b#517027e916d11183b65b0cd9e5066154dbc7324b"
+source = "git+https://github.com/anefzaoui/egui.git?rev=d110a3ccf2f1710f3e67db3f910b18003732c1df#d110a3ccf2f1710f3e67db3f910b18003732c1df"
dependencies = [
"accesskit_winit",
"arboard",
@@ -2016,7 +2016,7 @@ dependencies = [
[[package]]
name = "egui_extras"
version = "0.37.0"
-source = "git+https://github.com/anefzaoui/egui.git?rev=517027e916d11183b65b0cd9e5066154dbc7324b#517027e916d11183b65b0cd9e5066154dbc7324b"
+source = "git+https://github.com/anefzaoui/egui.git?rev=d110a3ccf2f1710f3e67db3f910b18003732c1df#d110a3ccf2f1710f3e67db3f910b18003732c1df"
dependencies = [
"ahash",
"egui",
@@ -2032,7 +2032,7 @@ dependencies = [
[[package]]
name = "egui_glow"
version = "0.37.0"
-source = "git+https://github.com/anefzaoui/egui.git?rev=517027e916d11183b65b0cd9e5066154dbc7324b#517027e916d11183b65b0cd9e5066154dbc7324b"
+source = "git+https://github.com/anefzaoui/egui.git?rev=d110a3ccf2f1710f3e67db3f910b18003732c1df#d110a3ccf2f1710f3e67db3f910b18003732c1df"
dependencies = [
"bytemuck",
"egui",
@@ -2060,7 +2060,7 @@ dependencies = [
[[package]]
name = "emath"
version = "0.37.0"
-source = "git+https://github.com/anefzaoui/egui.git?rev=517027e916d11183b65b0cd9e5066154dbc7324b#517027e916d11183b65b0cd9e5066154dbc7324b"
+source = "git+https://github.com/anefzaoui/egui.git?rev=d110a3ccf2f1710f3e67db3f910b18003732c1df#d110a3ccf2f1710f3e67db3f910b18003732c1df"
dependencies = [
"bytemuck",
]
@@ -2129,7 +2129,7 @@ dependencies = [
[[package]]
name = "epaint"
version = "0.37.0"
-source = "git+https://github.com/anefzaoui/egui.git?rev=517027e916d11183b65b0cd9e5066154dbc7324b#517027e916d11183b65b0cd9e5066154dbc7324b"
+source = "git+https://github.com/anefzaoui/egui.git?rev=d110a3ccf2f1710f3e67db3f910b18003732c1df#d110a3ccf2f1710f3e67db3f910b18003732c1df"
dependencies = [
"ahash",
"bytemuck",
@@ -2155,7 +2155,7 @@ dependencies = [
[[package]]
name = "epaint_default_fonts"
version = "0.37.0"
-source = "git+https://github.com/anefzaoui/egui.git?rev=517027e916d11183b65b0cd9e5066154dbc7324b#517027e916d11183b65b0cd9e5066154dbc7324b"
+source = "git+https://github.com/anefzaoui/egui.git?rev=d110a3ccf2f1710f3e67db3f910b18003732c1df#d110a3ccf2f1710f3e67db3f910b18003732c1df"
[[package]]
name = "equivalent"
diff --git a/Cargo.toml b/Cargo.toml
index 34a895e6..a37c9115 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -186,7 +186,7 @@ debug = "line-tables-only"
# can ask for a pass (Context::request_ui_pass: a dialog opened while minimized, #162); OpenGL
# without a usable configuration is an error, not a panic, so the next renderer is tried; a main
# window built hidden stays hidden after its first frame (a start with the session waits in the
-# notification area, #226). craft-libs can take the same commits to share one egui again.
+# notification area, #226); a monitor that has just gone away has no size instead of a panic (#335). craft-libs can take the same commits to share one egui again.
[patch.crates-io]
# librqbit 9.1.0 with per-torrent rate limits that change while a torrent runs (#39), and a
# magnet lookup's progress counted (#92), and every socket bound to one address (`bind_ip`,
@@ -204,14 +204,14 @@ librqbit-peer-protocol = { git = "https://github.com/anefzaoui/rqbit.git", rev =
librqbit-sha1-wrapper = { git = "https://github.com/anefzaoui/rqbit.git", rev = "ef50d87f4a9d5be9e3951b74f722433f9b46bd76" }
librqbit-tracker-comms = { git = "https://github.com/anefzaoui/rqbit.git", rev = "ef50d87f4a9d5be9e3951b74f722433f9b46bd76" }
librqbit-upnp = { git = "https://github.com/anefzaoui/rqbit.git", rev = "ef50d87f4a9d5be9e3951b74f722433f9b46bd76" }
-ecolor = { git = "https://github.com/anefzaoui/egui.git", rev = "517027e916d11183b65b0cd9e5066154dbc7324b" }
-emath = { git = "https://github.com/anefzaoui/egui.git", rev = "517027e916d11183b65b0cd9e5066154dbc7324b" }
-epaint = { git = "https://github.com/anefzaoui/egui.git", rev = "517027e916d11183b65b0cd9e5066154dbc7324b" }
-epaint_default_fonts = { git = "https://github.com/anefzaoui/egui.git", rev = "517027e916d11183b65b0cd9e5066154dbc7324b" }
-egui = { git = "https://github.com/anefzaoui/egui.git", rev = "517027e916d11183b65b0cd9e5066154dbc7324b" }
-egui-winit = { git = "https://github.com/anefzaoui/egui.git", rev = "517027e916d11183b65b0cd9e5066154dbc7324b" }
-egui_glow = { git = "https://github.com/anefzaoui/egui.git", rev = "517027e916d11183b65b0cd9e5066154dbc7324b" }
-egui-wgpu = { git = "https://github.com/anefzaoui/egui.git", rev = "517027e916d11183b65b0cd9e5066154dbc7324b" }
-egui_extras = { git = "https://github.com/anefzaoui/egui.git", rev = "517027e916d11183b65b0cd9e5066154dbc7324b" }
-eframe = { git = "https://github.com/anefzaoui/egui.git", rev = "517027e916d11183b65b0cd9e5066154dbc7324b" }
+ecolor = { git = "https://github.com/anefzaoui/egui.git", rev = "d110a3ccf2f1710f3e67db3f910b18003732c1df" }
+emath = { git = "https://github.com/anefzaoui/egui.git", rev = "d110a3ccf2f1710f3e67db3f910b18003732c1df" }
+epaint = { git = "https://github.com/anefzaoui/egui.git", rev = "d110a3ccf2f1710f3e67db3f910b18003732c1df" }
+epaint_default_fonts = { git = "https://github.com/anefzaoui/egui.git", rev = "d110a3ccf2f1710f3e67db3f910b18003732c1df" }
+egui = { git = "https://github.com/anefzaoui/egui.git", rev = "d110a3ccf2f1710f3e67db3f910b18003732c1df" }
+egui-winit = { git = "https://github.com/anefzaoui/egui.git", rev = "d110a3ccf2f1710f3e67db3f910b18003732c1df" }
+egui_glow = { git = "https://github.com/anefzaoui/egui.git", rev = "d110a3ccf2f1710f3e67db3f910b18003732c1df" }
+egui-wgpu = { git = "https://github.com/anefzaoui/egui.git", rev = "d110a3ccf2f1710f3e67db3f910b18003732c1df" }
+egui_extras = { git = "https://github.com/anefzaoui/egui.git", rev = "d110a3ccf2f1710f3e67db3f910b18003732c1df" }
+eframe = { git = "https://github.com/anefzaoui/egui.git", rev = "d110a3ccf2f1710f3e67db3f910b18003732c1df" }
winit = { git = "https://github.com/storytold/winit.git", rev = "a517b3846ee8457d84ee4975110bfda6797c44dc" }
diff --git a/ROADMAP.md b/ROADMAP.md
index 5b7fd79c..523fd24c 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -451,6 +451,8 @@ These ship in a later version, when they're ready.
### Bugs being looked into
+- πŸ”„ Crash on Windows when a screen goes away while MDM runs
+ ([#335](https://github.com/anefzaoui/misterdownloadmanager/issues/335)): fix in review
- πŸ”„ A duplicate prompt for a finished file that is gone
([#342](https://github.com/anefzaoui/misterdownloadmanager/issues/342)): fix in review
- πŸ” A 10-second freeze of the window after a night left open