Skip to content
This repository has been archived by the owner on Apr 23, 2021. It is now read-only.

Commit

Permalink
Fix things
Browse files Browse the repository at this point in the history
  • Loading branch information
Bajoja committed May 13, 2017
1 parent c255848 commit f3d0be9
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions src/settings/InOut.vala
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ namespace KDEConnectIndicator {
message ("File '%s' doesn't exist.\n", file.get_path ());
return 1;
}
else{
message ("File path exist '%s'\n", file.get_path());
else {
message ("File path exist '%s'\n", file.get_path ());
}

StringBuilder sb = new StringBuilder();
StringBuilder sb = new StringBuilder ();

string name_id = "- "+name+" : "+id;

Expand Down Expand Up @@ -67,12 +67,15 @@ namespace KDEConnectIndicator {
public static int delete_status (string id, string name) {
var file = File.new_for_path (visible_devices);

if (!file.query_exists ())
if (!file.query_exists ()) {
message ("File '%s' doesn't exist.\n", file.get_path ());
else
message ("File path exist '%s'\n", file.get_path());
return 1;
}
else {
message ("File path exist '%s'\n", file.get_path ());
}

StringBuilder sb = new StringBuilder();
StringBuilder sb = new StringBuilder ();

string name_id = "- "+name+" : "+id;

Expand All @@ -92,9 +95,8 @@ namespace KDEConnectIndicator {
}

try {
if (file.query_exists ()) {
if (file.query_exists ())
file.delete ();
}

var dos = new DataOutputStream (file.create (FileCreateFlags.REPLACE_DESTINATION));

Expand All @@ -109,5 +111,5 @@ namespace KDEConnectIndicator {

return 0;
}
}
}
}

0 comments on commit f3d0be9

Please sign in to comment.