Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkdeveloper authored Mar 23, 2024
1 parent aba6667 commit d03ceac
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion com.github.alexkdeveloper.desktop-files-creator.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"app-id" : "com.github.alexkdeveloper.desktop-files-creator",
"runtime" : "org.gnome.Platform",
"runtime-version" : "45",
"runtime-version" : "46",
"sdk" : "org.gnome.Sdk",
"command" : "desktop-files-creator",
"finish-args" : [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@
<launchable type="desktop-id">com.github.alexkdeveloper.desktop-files-creator.desktop</launchable>

<releases>
<release version="1.2.6" date="2024-03-23">
<description translatable="no">
<ul>
<li>Updated to GNOME Platform version 46</li>
</ul>
</description>
</release>
<release version="1.2.5" date="2023-09-26">
<description translatable="no">
<ul>
Expand Down
8 changes: 4 additions & 4 deletions src/window.vala
Original file line number Diff line number Diff line change
Expand Up @@ -188,13 +188,13 @@ namespace DesktopFilesCreator {
entry_name.grab_focus();
return;
}
var dialog_create_desktop_file = new Adw.MessageDialog(this, _("Create file %s?").printf(file.get_basename()), "");
var dialog_create_desktop_file = new Adw.AlertDialog(_("Create file %s?").printf(file.get_basename()), "");
dialog_create_desktop_file.add_response("cancel", _("_Cancel"));
dialog_create_desktop_file.add_response("ok", _("_OK"));
dialog_create_desktop_file.set_default_response("ok");
dialog_create_desktop_file.set_close_response("cancel");
dialog_create_desktop_file.set_response_appearance("ok", SUGGESTED);
dialog_create_desktop_file.show();
dialog_create_desktop_file.present(this);
dialog_create_desktop_file.response.connect((response) => {
if (response == "ok") {
create_desktop_file();
Expand Down Expand Up @@ -250,14 +250,14 @@ Categories="+entry_categories.get_text().strip();
}

private void alert (string heading, string body){
var dialog_alert = new Adw.MessageDialog(this, heading, body);
var dialog_alert = new Adw.AlertDialog(heading, body);
if (body != "") {
dialog_alert.set_body(body);
}
dialog_alert.add_response("ok", _("_OK"));
dialog_alert.set_response_appearance("ok", SUGGESTED);
dialog_alert.response.connect((_) => { dialog_alert.close(); });
dialog_alert.show();
dialog_alert.present(this);
}
}
}

0 comments on commit d03ceac

Please sign in to comment.