mirror of
https://github.com/profanity-im/profanity.git
synced 2025-02-02 15:08:15 -05:00
editor: dont check whether compose file exists
No need to check anymore since we are now saving per account. Like this we also could reopen the same file again.
This commit is contained in:
parent
b7914c4c6a
commit
158cfaface
@ -9424,12 +9424,6 @@ cmd_editor(ProfWin* window, const char* const command, gchar** args)
|
||||
free(jid);
|
||||
g_free(path);
|
||||
|
||||
// Check if file exists and create file
|
||||
if (g_file_test(filename, G_FILE_TEST_EXISTS)) {
|
||||
cons_show("Editor: temp file exists already");
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
GError* creation_error = NULL;
|
||||
GFile* file = g_file_new_for_path(filename);
|
||||
GFileOutputStream* fos = g_file_create(file, G_FILE_CREATE_PRIVATE, NULL, &creation_error);
|
||||
|
Loading…
x
Reference in New Issue
Block a user