@@ -3,19 +3,16 @@ use std::sync::atomic::{AtomicBool, Ordering};
33use std:: sync:: Arc ;
44
55use crossbeam_channel:: { bounded, Receiver } ;
6- use ctrlc ;
6+
77use dirs_sys:: known_folder;
88use serde_derive:: { Deserialize , Serialize } ;
9- use serde_json;
109use web_view:: * ;
11-
1210use winapi:: um:: knownfolders;
13-
1411use crate :: backend:: Backend ;
15- use crate :: compact:: system_supports_compression;
12+
13+ use crate :: config:: Config ;
1614use crate :: folder:: FolderSummary ;
1715use 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