Skip to content

Commit 38ef397

Browse files
author
Deren Vural
committed
added some comment notes
Signed-off-by: Deren Vural <[email protected]>
1 parent a0e7ba2 commit 38ef397

File tree

2 files changed

+9
-23
lines changed

2 files changed

+9
-23
lines changed

src/mainwindow/imp.rs

Lines changed: 7 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1798,6 +1798,10 @@ impl WindowImpl for MainWindow {
17981798
*
17991799
*/
18001800
fn close_request(&self, window: &Self::Type) -> Inhibit {
1801+
/*
1802+
//NOTE: this was meant for saving to json, probably unecessary now that i'm not using it..
1803+
1804+
18011805
// Create vector for final saving
18021806
let mut save_data: Vec<Vec<(String, String)>> = vec![];
18031807
//let mut save_data: gio::ListStore;
@@ -1828,36 +1832,16 @@ impl WindowImpl for MainWindow {
18281832
//save_data.append(&test_s);
18291833
}
18301834
1831-
// Create collection to store in json
18321835
// TEST OUTPUT
18331836
for gpu in save_data {
18341837
for stat in gpu {
18351838
println!("STAT NAME: `{}` STAT VALUE: `{}`", stat.0, stat.1);
18361839
}
18371840
}
1838-
// let qq = save_data
1839-
// .snapshot() //?
1840-
// .iter()
1841-
// .filter_map(Cast::downcast_ref::<TaskObject>)
1842-
// .map(TaskObject::task_data)
1843-
// .collect();
1844-
1845-
// let gpu_data: Vec<TaskData> = current_page
1846-
// .tasks() // change to "items" and grab all statistic pairs/objects
1847-
// .snapshot() //?
1848-
// .iter()
1849-
// .filter_map(Cast::downcast_ref::<TaskObject>)
1850-
// .map(TaskObject::task_data)
1851-
// .collect();
1852-
1853-
// Store in json
1854-
// Create json file object
1855-
//let file = File::create(data_path()).expect("Could not create json file.");
1856-
1857-
// Write json file
1858-
// serde_json::to_writer(file, &gpu_data)
1859-
// .expect("Could not write data to json file");
1841+
*/
18601842

1843+
//NOTE: This doesn't work for some reason, but seems to be to do with
1844+
// nvidia-settings or the Cancellable implementation in the rust bindings..
18611845
// Cancel any under-way sub processes
18621846
// if let Some(control) = Cancellable::current() {
18631847
// println!("Closing open windows..");

src/provider/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,8 @@ impl Provider {
310310
match self.property::<i32>("provider-type") {
311311
// Open Nvidia Settings
312312
0 | 1 => {
313+
//NOTE: This doesn't work for some reason, but seems to be to do with
314+
// nvidia-settings or the Cancellable implementation in the rust bindings..
313315
// Add new cancellable object to stack
314316
//let control: Cancellable = Cancellable::new();
315317
//control.push_current();

0 commit comments

Comments
 (0)