Verified Kaydet (Commit) 0c7e8722 authored tarafından Erdem Ersoy's avatar Erdem Ersoy

Fix "Install" menu item function

üst 419fb9c9
......@@ -38,7 +38,7 @@ gettext.install("flatpak-gui", "po/")
class InstallWindow(object):
def __init__(self, application, apptoinstrealname, apptoinstarch,
apptoinstbranch, apptoinstremote, flatpakinstallation,
liststore):
liststore, treemodel):
self.Application = application
self.AppToInstallRealName = apptoinstrealname
......@@ -68,6 +68,7 @@ class InstallWindow(object):
None)
self.ListStoreMain = liststore
self.TreeModel = treemodel
try:
InstallGUIFile = "ui/actionwindow.glade"
......@@ -140,6 +141,12 @@ class InstallWindow(object):
GLib.idle_add(self.ListStoreMain.clear,
data=None,
priority=GLib.PRIORITY_DEFAULT)
time.sleep(0.25)
GLib.idle_add(self.TreeModel.refilter,
data=None,
priority=GLib.PRIORITY_DEFAULT)
time.sleep(0.25)
flatpakrefslist = \
self.FlatpakInstallation.list_installed_refs()
......@@ -179,6 +186,11 @@ class InstallWindow(object):
InstalledSizeMiBAsString,
DownloadSizeMiBAsString,
Name])
GLib.idle_add(self.TreeModel.refilter,
data=None,
priority=GLib.PRIORITY_DEFAULT)
time.sleep(0.02)
else:
continue
......
......@@ -511,7 +511,7 @@ class MainWindow(object):
InstallWindow(self.Application, AppToInstallRealName,
AppToInstallArch, AppToInstallBranch,
AppToInstallRemote, self.FlatpakInstallation,
self.ListStoreMain)
self.ListStoreMain, TreeModel)
def onInstallFromEntry(self, menuitem):
InstallFromEntryWindow(self.Application, self.FlatpakInstallation,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment