Bugfix
This commit is contained in:
@@ -59,10 +59,8 @@ CinnamonDynamicWallpaperExtension.prototype = {
|
|||||||
_init: function(uuid) {
|
_init: function(uuid) {
|
||||||
this.settings = new Settings.ExtensionSettings(this, uuid);
|
this.settings = new Settings.ExtensionSettings(this, uuid);
|
||||||
|
|
||||||
this.bindSettings("expand_over_all_displays", this.settingsUpdated)
|
|
||||||
|
|
||||||
// Check for the first startup
|
// Check for the first startup
|
||||||
if (this.settings.getValue("first_start")) {
|
if (!this.settings.getValue("first_start")) {
|
||||||
|
|
||||||
// Welcome notification
|
// Welcome notification
|
||||||
this.showNotification("Welcome to Cinnamon Dynamic Wallpaper",
|
this.showNotification("Welcome to Cinnamon Dynamic Wallpaper",
|
||||||
@@ -70,6 +68,7 @@ CinnamonDynamicWallpaperExtension.prototype = {
|
|||||||
|
|
||||||
// Hide the notification on system restart
|
// Hide the notification on system restart
|
||||||
this.settings.setValue("first_start", false)
|
this.settings.setValue("first_start", false)
|
||||||
|
this.settings.setValue("source_folder", DIRECTORY["path"] + "/images/included_image_sets/lakeside/")
|
||||||
}
|
}
|
||||||
|
|
||||||
// Start the main loop, checks in fixed time periods the
|
// Start the main loop, checks in fixed time periods the
|
||||||
@@ -132,7 +131,7 @@ CinnamonDynamicWallpaperExtension.prototype = {
|
|||||||
|
|
||||||
notification.connect("action-invoked", () =>
|
notification.connect("action-invoked", () =>
|
||||||
Util.spawnCommandLine("/usr/bin/env python3 " +
|
Util.spawnCommandLine("/usr/bin/env python3 " +
|
||||||
DIRECTORY.path + "/preferences/preferences.py"));
|
DIRECTORY.path + "/preferences.py"));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Put all together
|
// Put all together
|
||||||
|
|||||||
@@ -223,8 +223,8 @@ class Preferences:
|
|||||||
time_periods_min.append(time_range_now.hour * 60 + time_range_now.minute)
|
time_periods_min.append(time_range_now.hour * 60 + time_range_now.minute)
|
||||||
|
|
||||||
# Create time bar
|
# Create time bar
|
||||||
self.time_bar_chart.create_bar_chart_with_polylines(PREFERENCES_URI, 1200, 150, time_periods_min)
|
self.time_bar_chart.create_bar_chart_with_polylines(PREFERENCES_URI, 1300, 150, time_periods_min)
|
||||||
self.time_bar_chart.create_bar_chart(PREFERENCES_URI, 1200, 150, time_periods_min)
|
self.time_bar_chart.create_bar_chart(PREFERENCES_URI, 1300, 150, time_periods_min)
|
||||||
|
|
||||||
# Load to the views
|
# Load to the views
|
||||||
pixbuf = GdkPixbuf.Pixbuf.new_from_file(PREFERENCES_URI + "/time_bar_polylines.svg")
|
pixbuf = GdkPixbuf.Pixbuf.new_from_file(PREFERENCES_URI + "/time_bar_polylines.svg")
|
||||||
|
|||||||
Reference in New Issue
Block a user