mirror of
https://gitlab.gnome.org/World/tootle
synced 2025-02-17 03:51:11 +01:00
Remove Soup.Cache for now
This commit is contained in:
parent
71c1bbd04d
commit
5efb4941f2
@ -27,13 +27,13 @@ public class Tootle.SettingsDialog : Gtk.Dialog {
|
||||
grid.attach (new SettingsLabel (_("Real-time updates:")), 0, i);
|
||||
grid.attach (new SettingsSwitch ("live-updates"), 1, i++);
|
||||
|
||||
grid.attach (new Granite.HeaderLabel (_("Caching")), 0, i++, 2, 1);
|
||||
grid.attach (new SettingsLabel (_("Use cache:")), 0, i);
|
||||
grid.attach (new SettingsSwitch ("cache"), 1, i++);
|
||||
grid.attach (new SettingsLabel (_("Max cache size (MB):")), 0, i);
|
||||
var cache_size = new Gtk.SpinButton.with_range (16, 256, 1);
|
||||
settings.schema.bind ("cache-size", cache_size, "value", SettingsBindFlags.DEFAULT);
|
||||
grid.attach (cache_size, 1, i++);
|
||||
// grid.attach (new Granite.HeaderLabel (_("Caching")), 0, i++, 2, 1);
|
||||
// grid.attach (new SettingsLabel (_("Use cache:")), 0, i);
|
||||
// grid.attach (new SettingsSwitch ("cache"), 1, i++);
|
||||
// grid.attach (new SettingsLabel (_("Max cache size (MB):")), 0, i);
|
||||
// var cache_size = new Gtk.SpinButton.with_range (16, 256, 1);
|
||||
// settings.schema.bind ("cache-size", cache_size, "value", SettingsBindFlags.DEFAULT);
|
||||
// grid.attach (cache_size, 1, i++);
|
||||
|
||||
grid.attach (new Granite.HeaderLabel (_("Notifications")), 0, i++, 2, 1);
|
||||
grid.attach (new SettingsLabel (_("Always receive notifications:")), 0, i);
|
||||
|
@ -63,14 +63,14 @@ public class Tootle.NetManager : GLib.Object {
|
||||
var has_cache = session.has_feature (cache.get_type ());
|
||||
if (Tootle.settings.cache) {
|
||||
if (!has_cache) {
|
||||
debug ("Turning on cache");
|
||||
session.add_feature (cache);
|
||||
//debug ("Turning on cache");
|
||||
//session.add_feature (cache);
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (has_cache) {
|
||||
debug ("Turning off cache");
|
||||
session.remove_feature (cache);
|
||||
//debug ("Turning off cache");
|
||||
//session.remove_feature (cache);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user