Verified Kaydet (Commit) 1a88e087 authored tarafından Erdem Ersoy's avatar Erdem Ersoy

Rewrite Flatpak GUI mess (14/X):

* Re-implement installing from file with command-line argument
üst 04ddb942
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
from pardusflatpakgui.mainwindow import MainWindow from pardusflatpakgui.mainwindow import MainWindow
from pardusflatpakgui.installwindow import InstallWindow from pardusflatpakgui.installfromfilewindow import InstallFromFileWindow
import gettext import gettext
import locale import locale
...@@ -74,7 +74,7 @@ class FlatpakGUIApp(Gtk.Application): ...@@ -74,7 +74,7 @@ class FlatpakGUIApp(Gtk.Application):
file_contents_bytes = bytes(file_contents, "utf-8") file_contents_bytes = bytes(file_contents, "utf-8")
file_contents_glib_bytes = GLib.Bytes.new(file_contents_bytes) file_contents_glib_bytes = GLib.Bytes.new(file_contents_bytes)
InstallWindow(self, application, file_contents_glib_bytes) InstallFromFileWindow(application, file_contents_glib_bytes)
else: else:
self.MessageDialogError.set_markup( self.MessageDialogError.set_markup(
_("<big><b>Argument Error</b></big>")) _("<big><b>Argument Error</b></big>"))
......
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