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 json
|
||||
|
||||
from gi.repository import Gtk, Adw, Gio, Gdk
|
||||
from gi.repository import Gtk, Adw, Gio, Gdk, GLib
|
||||
|
||||
from .preset_row import GradiencePresetRow
|
||||
from .builtin_preset_row import GradienceBuiltinPresetRow
|
||||
|
@ -97,6 +97,7 @@ class GradiencePresetWindow(Adw.Window):
|
|||
|
||||
def remove_repo(self, 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.setup_explore()
|
||||
|
||||
|
|
Loading…
Reference in a new issue