Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
torikulhabib committed Dec 2, 2021
1 parent 9318920 commit ead992c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
3 changes: 2 additions & 1 deletion com.github.torikulhabib.niki.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@ sdk: io.elementary.Sdk
command: com.github.torikulhabib.niki

finish-args:
- '--share=network'
- '--socket=session-bus'
- '--share=ipc'
- '--socket=fallback-x11'
- '--socket=wayland'
- '--socket=pulseaudio'
- '--socket=x11'
- '--device=all'
- '--filesystem=home'
- '--filesystem=xdg-videos'

cleanup:
- '*.a'
Expand Down
2 changes: 1 addition & 1 deletion data/com.github.torikulhabib.niki.appdata.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<provides>
<binary>com.github.torikulhabib.niki</binary>
</provides>
<release version="0.9.9" date="2021-08-10">
<release version="0.9.10" date="2021-12-2">
<description>
<p>Fix and add Features!</p>
<p>Lyric Downloader!</p>
Expand Down
10 changes: 2 additions & 8 deletions src/Utils.vala
Original file line number Diff line number Diff line change
Expand Up @@ -902,10 +902,7 @@ namespace Niki {
}

private File run_open_folder (Gtk.Widget widget) {
var folder_location = new Gtk.FileChooserDialog (
_("Open"), ((Gtk.Window) widget.get_toplevel ()), Gtk.FileChooserAction.SELECT_FOLDER,
_("Cancel"), Gtk.ResponseType.CANCEL,
_("Open"), Gtk.ResponseType.ACCEPT);
var folder_location = new Gtk.FileChooserNative (_("Open"), ((Gtk.Window) widget.get_toplevel ()), Gtk.FileChooserAction.SELECT_FOLDER, _("Open"), _("Cancel"));

var filter_folder = new Gtk.FileFilter ();
filter_folder.add_mime_type ("inode/directory");
Expand All @@ -919,10 +916,7 @@ namespace Niki {
}

public File[] run_open_file (Gtk.Widget widget, bool multi, int count) {
var file = new Gtk.FileChooserDialog (
_("Open"), ((Gtk.Window) widget.get_toplevel ()), Gtk.FileChooserAction.OPEN,
_("Cancel"), Gtk.ResponseType.CANCEL,
_("Open"), Gtk.ResponseType.ACCEPT);
var file = new Gtk.FileChooserNative (_("Open"), ((Gtk.Window) widget.get_toplevel ()), Gtk.FileChooserAction.OPEN, _("Open"), _("Cancel"));
file.select_multiple = multi;

var preview_area = new Gtk.Image () {
Expand Down

0 comments on commit ead992c

Please sign in to comment.