Small fixes, changlelog
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -2,6 +2,7 @@
|
|||||||
*.glade#
|
*.glade#
|
||||||
*.txt
|
*.txt
|
||||||
*.json
|
*.json
|
||||||
|
*.tar.gz
|
||||||
extracted_images/
|
extracted_images/
|
||||||
selected/
|
selected/
|
||||||
__pycache__
|
__pycache__
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
# Version 2.4
|
||||||
|
- Adding Login window support
|
||||||
|
- Adding Russian translation (Thanks to blogdron)
|
||||||
|
|
||||||
# Version 2.3
|
# Version 2.3
|
||||||
- Adding Dutch translation
|
- Adding Dutch translation
|
||||||
- Adding German translation
|
- Adding German translation
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
},
|
},
|
||||||
"picture_aspect": {
|
"picture_aspect": {
|
||||||
"type": "generic",
|
"type": "generic",
|
||||||
"default": "scaled"
|
"default": "zoom"
|
||||||
},
|
},
|
||||||
"dynamic_background_color": {
|
"dynamic_background_color": {
|
||||||
"type": "generic",
|
"type": "generic",
|
||||||
@@ -133,6 +133,6 @@
|
|||||||
},
|
},
|
||||||
"login_image": {
|
"login_image": {
|
||||||
"type": "generic",
|
"type": "generic",
|
||||||
"default": true
|
"default": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -13,5 +13,6 @@ if __name__ == "__main__":
|
|||||||
elif sys.argv[1] == "loop":
|
elif sys.argv[1] == "loop":
|
||||||
# Run the methods which updates the data
|
# Run the methods which updates the data
|
||||||
view_model = Main_View_Model()
|
view_model = Main_View_Model()
|
||||||
|
view_model.set_login_image()
|
||||||
view_model.refresh_image()
|
view_model.refresh_image()
|
||||||
view_model.set_background_gradient()
|
view_model.set_background_gradient()
|
||||||
|
|||||||
@@ -121,8 +121,6 @@ class Main_View_Model:
|
|||||||
hour = raw_str[0:raw_str.find(":")]
|
hour = raw_str[0:raw_str.find(":")]
|
||||||
minute = raw_str[raw_str.find(":") + 1:]
|
minute = raw_str[raw_str.find(":") + 1:]
|
||||||
|
|
||||||
time(1, 2)
|
|
||||||
|
|
||||||
return time(hour=int(hour), minute=int(minute))
|
return time(hour=int(hour), minute=int(minute))
|
||||||
|
|
||||||
|
|
||||||
@@ -297,7 +295,6 @@ class Main_View_Model:
|
|||||||
for line in conf_file.readlines():
|
for line in conf_file.readlines():
|
||||||
if line.startswith("background"):
|
if line.startswith("background"):
|
||||||
# Case 1: Preference is already set as expected -> leave function
|
# Case 1: Preference is already set as expected -> leave function
|
||||||
print(line)
|
|
||||||
if line.find("cinnamon_dynamic_wallpaper/login_image.jpg") != -1 and self.cinnamon_prefs.login_image or \
|
if line.find("cinnamon_dynamic_wallpaper/login_image.jpg") != -1 and self.cinnamon_prefs.login_image or \
|
||||||
line.find("cinnamon_dynamic_wallpaper/login_image.jpg") == -1 and not self.cinnamon_prefs.login_image:
|
line.find("cinnamon_dynamic_wallpaper/login_image.jpg") == -1 and not self.cinnamon_prefs.login_image:
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ class Cinnamon_Pref_Handler:
|
|||||||
self.load_preferences()
|
self.load_preferences()
|
||||||
|
|
||||||
|
|
||||||
def extract_json(self, parameter: str) -> str:
|
def extract_json(self, parameter: str) -> any:
|
||||||
""" Get a parameter from the json dictionary safely
|
""" Get a parameter from the json dictionary safely
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
@@ -52,13 +52,13 @@ class Cinnamon_Pref_Handler:
|
|||||||
self.extract_json('period_9_image')
|
self.extract_json('period_9_image')
|
||||||
]
|
]
|
||||||
|
|
||||||
self.period_source =self.extract_json('period_source')
|
self.period_source = self.extract_json('period_source')
|
||||||
self.location_refresh_intervals =self.extract_json('location_refresh_intervals')
|
self.location_refresh_intervals = self.extract_json('location_refresh_intervals')
|
||||||
self.network_location_provider =self.extract_json('network_location_provider')
|
self.network_location_provider = self.extract_json('network_location_provider')
|
||||||
self.latitude_auto =self.extract_json('latitude_auto')
|
self.latitude_auto = self.extract_json('latitude_auto')
|
||||||
self.longitude_auto =self.extract_json('longitude_auto')
|
self.longitude_auto = self.extract_json('longitude_auto')
|
||||||
self.latitude_custom =self.extract_json('latitude_custom')
|
self.latitude_custom = self.extract_json('latitude_custom')
|
||||||
self.longitude_custom =self.extract_json('longitude_custom')
|
self.longitude_custom = self.extract_json('longitude_custom')
|
||||||
|
|
||||||
self.period_custom_start_time = [
|
self.period_custom_start_time = [
|
||||||
self.extract_json('period_0_custom_start_time'),
|
self.extract_json('period_0_custom_start_time'),
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
"uuid": "cinnamon-dynamic-wallpaper@TobiZog",
|
"uuid": "cinnamon-dynamic-wallpaper@TobiZog",
|
||||||
"name": "Cinnamon Dynamic Wallpaper",
|
"name": "Cinnamon Dynamic Wallpaper",
|
||||||
"description": "Cinnamon extension for dynamic desktop backgrounds based on time and location",
|
"description": "Cinnamon extension for dynamic desktop backgrounds based on time and location",
|
||||||
"version": "2.3",
|
"version": "2.4",
|
||||||
"multiversion": true,
|
"multiversion": true,
|
||||||
"cinnamon-version": [
|
"cinnamon-version": [
|
||||||
"5.4",
|
"5.4",
|
||||||
|
|||||||
Reference in New Issue
Block a user