mirror of
https://github.com/transmission/transmission.git
synced 2025-12-25 04:45:56 +00:00
Add more booleans to the picture
This commit is contained in:
@@ -289,7 +289,7 @@ gtr_torrent_options_dialog_new (GtkWindow * parent, TrCore * core, tr_ctor * cto
|
||||
GTK_RESPONSE_CANCEL,
|
||||
-1);
|
||||
|
||||
if (tr_ctorGetDownloadDir (ctor, TR_FORCE, &str))
|
||||
if (!tr_ctorGetDownloadDir (ctor, TR_FORCE, &str))
|
||||
g_assert_not_reached ();
|
||||
g_assert (str);
|
||||
|
||||
@@ -375,7 +375,7 @@ gtr_torrent_options_dialog_new (GtkWindow * parent, TrCore * core, tr_ctor * cto
|
||||
/* torrent priority row */
|
||||
row++;
|
||||
w = data->run_check;
|
||||
if (tr_ctorGetPaused (ctor, TR_FORCE, &flag))
|
||||
if (!tr_ctorGetPaused (ctor, TR_FORCE, &flag))
|
||||
g_assert_not_reached ();
|
||||
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (w), !flag);
|
||||
gtk_grid_attach (grid, w, 0, row, 2, 1);
|
||||
@@ -383,7 +383,7 @@ gtr_torrent_options_dialog_new (GtkWindow * parent, TrCore * core, tr_ctor * cto
|
||||
/* "trash .torrent file" row */
|
||||
row++;
|
||||
w = data->trash_check;
|
||||
if (tr_ctorGetDeleteSource (ctor, &flag))
|
||||
if (!tr_ctorGetDeleteSource (ctor, &flag))
|
||||
g_assert_not_reached ();
|
||||
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (w), flag);
|
||||
gtk_grid_attach (grid, w, 0, row, 2, 1);
|
||||
|
||||
@@ -1171,16 +1171,16 @@ core_add_ctor (TrCore * core, tr_ctor * ctor,
|
||||
static void
|
||||
core_apply_defaults (tr_ctor * ctor)
|
||||
{
|
||||
if (tr_ctorGetPaused (ctor, TR_FORCE, NULL))
|
||||
if (!tr_ctorGetPaused (ctor, TR_FORCE, NULL))
|
||||
tr_ctorSetPaused (ctor, TR_FORCE, !gtr_pref_flag_get (TR_KEY_start_added_torrents));
|
||||
|
||||
if (tr_ctorGetDeleteSource (ctor, NULL))
|
||||
if (!tr_ctorGetDeleteSource (ctor, NULL))
|
||||
tr_ctorSetDeleteSource (ctor, gtr_pref_flag_get (TR_KEY_trash_original_torrent_files));
|
||||
|
||||
if (tr_ctorGetPeerLimit (ctor, TR_FORCE, NULL))
|
||||
if (!tr_ctorGetPeerLimit (ctor, TR_FORCE, NULL))
|
||||
tr_ctorSetPeerLimit (ctor, TR_FORCE, gtr_pref_int_get (TR_KEY_peer_limit_per_torrent));
|
||||
|
||||
if (tr_ctorGetDownloadDir (ctor, TR_FORCE, NULL))
|
||||
if (!tr_ctorGetDownloadDir (ctor, TR_FORCE, NULL))
|
||||
tr_ctorSetDownloadDir (ctor, TR_FORCE, gtr_pref_string_get (TR_KEY_download_dir));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user