Skip to content

Commit 860d049

Browse files
committed
Remove WofUtil.dll check
This doesn't work when launched from the Start Menu for... reasons.
1 parent 096f979 commit 860d049

File tree

1 file changed

+4
-21
lines changed

1 file changed

+4
-21
lines changed

src/gui.rs

Lines changed: 4 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,16 @@ use std::sync::atomic::{AtomicBool, Ordering};
33
use std::sync::Arc;
44

55
use crossbeam_channel::{bounded, Receiver};
6-
use ctrlc;
6+
77
use dirs_sys::known_folder;
88
use serde_derive::{Deserialize, Serialize};
9-
use serde_json;
109
use web_view::*;
11-
1210
use winapi::um::knownfolders;
13-
1411
use crate::backend::Backend;
15-
use crate::compact::system_supports_compression;
12+
13+
use crate::config::Config;
1614
use crate::folder::FolderSummary;
1715
use crate::persistence::{self, config};
18-
use crate::config::Config;
1916

2017
// messages received from the GUI
2118
#[derive(Deserialize, Debug, Clone)]
@@ -99,7 +96,7 @@ impl<T> GuiWrapper<T> {
9996
}
10097

10198
pub fn config(&self) {
102-
let s = config().read().unwrap().current();;
99+
let s = config().read().unwrap().current();
103100
self.send(&GuiResponse::Config {
104101
decimal: s.decimal,
105102
compression: s.compression.to_string(),
@@ -261,20 +258,6 @@ pub fn spawn_gui() {
261258

262259
persistence::init();
263260

264-
if !system_supports_compression().unwrap_or_default() {
265-
webview
266-
.dialog()
267-
.error(
268-
"Unsupported OS",
269-
"Compactor requires Windows 10 features, \
270-
and is completely untested on older systems.\n\n\
271-
Proceed if you fancy being a guinea pig.\n\n\
272-
Analysis will probably work, \
273-
compression and decompression will not.",
274-
)
275-
.ok();
276-
}
277-
278261
let gui = GuiWrapper::new(webview.handle());
279262
let mut backend = Backend::new(gui, from_gui_rx);
280263
let bg = std::thread::spawn(move || {

0 commit comments

Comments
 (0)