parent
b628d8f849
commit
e5fb3d70ad
|
@ -86,10 +86,9 @@ class GajimThemesWindow:
|
||||||
return
|
return
|
||||||
new_config_name = new_name.replace(' ', '_')
|
new_config_name = new_name.replace(' ', '_')
|
||||||
if new_config_name in gajim.config.get_per('themes'):
|
if new_config_name in gajim.config.get_per('themes'):
|
||||||
#ErrorDialog()
|
|
||||||
return
|
return
|
||||||
gajim.config.add_per('themes', new_config_name)
|
gajim.config.add_per('themes', new_config_name)
|
||||||
#Copy old theme values
|
# Copy old theme values
|
||||||
old_config_name = old_name.replace(' ', '_')
|
old_config_name = old_name.replace(' ', '_')
|
||||||
properties = ['textcolor', 'bgcolor', 'font', 'fontattrs']
|
properties = ['textcolor', 'bgcolor', 'font', 'fontattrs']
|
||||||
gajim.config.add_per('themes', new_config_name)
|
gajim.config.add_per('themes', new_config_name)
|
||||||
|
@ -102,6 +101,7 @@ class GajimThemesWindow:
|
||||||
if old_config_name == gajim.config.get('roster_theme'):
|
if old_config_name == gajim.config.get('roster_theme'):
|
||||||
gajim.config.set('roster_theme', new_config_name)
|
gajim.config.set('roster_theme', new_config_name)
|
||||||
model.set_value(iter, 0, new_name)
|
model.set_value(iter, 0, new_name)
|
||||||
|
self.current_theme = new_name
|
||||||
self.plugin.windows['preferences'].update_preferences_window()
|
self.plugin.windows['preferences'].update_preferences_window()
|
||||||
|
|
||||||
def fill_themes_treeview(self):
|
def fill_themes_treeview(self):
|
||||||
|
|
Loading…
Reference in New Issue