mirror of
https://github.com/GradienceTeam/Gradience.git
synced 2024-09-12 15:52:31 +00:00
fix: add remove repo
This commit is contained in:
parent
860cd660ab
commit
4d7864e68d
1 changed files with 3 additions and 2 deletions
|
@ -20,7 +20,7 @@ import os
|
||||||
import shutil
|
import shutil
|
||||||
import json
|
import json
|
||||||
|
|
||||||
from gi.repository import Gtk, Adw, Gio, Gdk
|
from gi.repository import Gtk, Adw, Gio, Gdk, GLib
|
||||||
|
|
||||||
from .preset_row import GradiencePresetRow
|
from .preset_row import GradiencePresetRow
|
||||||
from .builtin_preset_row import GradienceBuiltinPresetRow
|
from .builtin_preset_row import GradienceBuiltinPresetRow
|
||||||
|
@ -96,7 +96,8 @@ class GradiencePresetWindow(Adw.Window):
|
||||||
self.on_undo_button_clicked)
|
self.on_undo_button_clicked)
|
||||||
|
|
||||||
def remove_repo(self, repo_name):
|
def remove_repo(self, repo_name):
|
||||||
self.user_repositories.pop(repo_name)
|
self.user_repositories.pop(repo_name)
|
||||||
|
self.settings.set_value("repos", GLib.Variant("a{sv}", self.user_repositories))
|
||||||
self.reload_repos_group()
|
self.reload_repos_group()
|
||||||
self.setup_explore()
|
self.setup_explore()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue