mirror of
https://github.com/transmission/transmission.git
synced 2025-12-19 18:08:31 +00:00
Don't use message dialog to display blocklist update status (#4392)
Make it behave [almost] the same way port test works: display update status and final result in the label below the URL entry. The only difference is that label returns to its usual mode showing total number of rules after a while once update is finished; could probably have done it differently but decided against it to avoid affecting translations.
This commit is contained in:
@@ -185,7 +185,7 @@ private:
|
||||
|
||||
sigc::signal<void(ErrorCode, Glib::ustring const&)> signal_add_error_;
|
||||
sigc::signal<void(tr_ctor*)> signal_add_prompt_;
|
||||
sigc::signal<void(int)> signal_blocklist_updated_;
|
||||
sigc::signal<void(bool)> signal_blocklist_updated_;
|
||||
sigc::signal<void(bool)> signal_busy_;
|
||||
sigc::signal<void(tr_quark)> signal_prefs_changed_;
|
||||
sigc::signal<void(bool)> signal_port_tested_;
|
||||
@@ -1715,7 +1715,7 @@ void Session::blocklist_update()
|
||||
gtr_pref_int_set(TR_KEY_blocklist_date, tr_time());
|
||||
}
|
||||
|
||||
impl_->signal_blocklist_updated().emit(ruleCount);
|
||||
impl_->signal_blocklist_updated().emit(ruleCount >= 0);
|
||||
});
|
||||
tr_variantClear(&request);
|
||||
}
|
||||
@@ -1803,7 +1803,7 @@ sigc::signal<void(tr_ctor*)>& Session::signal_add_prompt()
|
||||
return impl_->signal_add_prompt();
|
||||
}
|
||||
|
||||
sigc::signal<void(int)>& Session::signal_blocklist_updated()
|
||||
sigc::signal<void(bool)>& Session::signal_blocklist_updated()
|
||||
{
|
||||
return impl_->signal_blocklist_updated();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user